wok-6.x rev 14088
Up: emacs-pkg-vala-mode: tidy receipt
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Feb 22 21:15:53 2013 +0100 (2013-02-22) |
parents | e439deff3a85 |
children | f2430744a95d |
files | emacs-pkg-vala-mode/receipt |
line diff
1.1 --- a/emacs-pkg-vala-mode/receipt Fri Feb 22 21:15:31 2013 +0100 1.2 +++ b/emacs-pkg-vala-mode/receipt Fri Feb 22 21:15:53 2013 +0100 1.3 @@ -13,15 +13,24 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 + echo -n "Installing start file" 1.8 + mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ 1.9 + cp -a stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d 1.10 + status 1.11 + 1.12 echo -n "Installing vala-mode" 1.13 mkdir -p $fs/usr/share/emacs/site-lisp/vala-mode && \ 1.14 - cp stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode 1.15 + cp -a stuff/vala-mode.el $fs/usr/share/emacs/site-lisp/vala-mode 1.16 status 1.17 1.18 - echo -n "Installing start file" 1.19 - mkdir -p $fs/usr/share/emacs/site-lisp/site-start.d && \ 1.20 - cp stuff/80-vala-init.el $fs/usr/share/emacs/site-lisp/site-start.d 1.21 - status 1.22 + # byte-compile files, remove src 1.23 + cd $fs/usr/share/emacs/site-lisp/vala-mode/ 1.24 + for file in vala*.el ; do 1.25 + echo -n "Byte-compiling $file" 1.26 + emacs -batch -f batch-byte-compile $file 2> /dev/null 1.27 + status 1.28 + rm -f $file 1.29 + done 1.30 } 1.31 1.32 post_install()