tazpkg diff update-tazpkg.sh @ rev 735
tazpkg: fix install-list
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Dec 29 13:45:57 2014 -0500 (2014-12-29) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/update-tazpkg.sh Mon Dec 29 13:45:57 2014 -0500 1.3 @@ -0,0 +1,19 @@ 1.4 +mkdir -p /usr/lib/tazpkg 1.5 +# /usr/lib/slitaz ? 1.6 + 1.7 +for i in \ 1.8 + tazpkg tazpkg-box tazpkg-notify \ 1.9 + modules/tazpkg-convert modules/tazpkg-find-depends \ 1.10 + tazpanel/pkgs.cgi tazpanel/pkgs ; 1.11 +do 1.12 + fi=$(basename $i) 1.13 + case $i in 1.14 + tazpanel/pkgs.cgi) DIR=/var/www/tazpanel ;; 1.15 + tazpanel/pkgs) DIR=/var/www/tazpanel/menu.d ;; 1.16 + modules/*) DIR=/usr/lib/tazpkg ;; 1.17 + *) DIR=/usr/bin ;; 1.18 + esac 1.19 + [ -f "$DIR/$fi" ] && rm $DIR/$fi 1.20 + wget -P $DIR hg.slitaz.org/tazpkg/raw-file/tip/$i 1.21 + chmod +x $DIR/$fi 1.22 +done