wok-next rev 14195

emacs-pkg-vala-mode: tidy receipt
author Dominique Corbex <domcox@slitaz.org>
date Tue Mar 12 23:05:45 2013 +0100 (2013-03-12)
parents f8c578364093
children 4e8a13288f6b
files emacs-pkg-vala-mode/receipt
line diff
     1.1 --- a/emacs-pkg-vala-mode/receipt	Tue Mar 12 23:05:24 2013 +0100
     1.2 +++ b/emacs-pkg-vala-mode/receipt	Tue Mar 12 23:05:45 2013 +0100
     1.3 @@ -25,12 +25,11 @@
     1.4  	status
     1.5  
     1.6  	# byte-compile files, remove src
     1.7 -	cd $fs/usr/share/emacs/site-lisp/vala-mode/
     1.8 -	for file in vala*.el ; do
     1.9 -		echo -n "Byte-compiling $file"
    1.10 -		emacs -batch -f batch-byte-compile $file 2> /dev/null
    1.11 +	for file in $fs/usr/share/emacs/site-lisp/vala-mode/vala*.el ; do
    1.12 +		echo -n "Byte-compiling $(basename file)"
    1.13 +		emacs -batch -f batch-byte-compile $file 2> /dev/null; err=$?
    1.14  		status
    1.15 -		rm -f $file
    1.16 +		[ "$err" = "0" ] && rm -f $file
    1.17  	done
    1.18  }
    1.19