wok-6.x rev 14194

emacs-pkg-po-mode: tidy receipt
author Dominique Corbex <domcox@slitaz.org>
date Tue Mar 12 23:05:24 2013 +0100 (2013-03-12)
parents 11e8d8600d29
children fddbfa2d4fb3
files emacs-pkg-po-mode/receipt
line diff
     1.1 --- a/emacs-pkg-po-mode/receipt	Tue Mar 12 23:04:56 2013 +0100
     1.2 +++ b/emacs-pkg-po-mode/receipt	Tue Mar 12 23:05:24 2013 +0100
     1.3 @@ -26,12 +26,11 @@
     1.4  	status
     1.5  
     1.6  	# byte-compile files, remove src
     1.7 -	cd $fs/usr/share/emacs/site-lisp/po-mode/
     1.8 -	for file in *.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/po-mode/*.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