tazpkg annotate update-tazpkg.sh @ rev 752

Change VERSION
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Mar 23 01:18:38 2015 +0100 (2015-03-23)
parents
children
rev   line source
psychomaniak@716 1 mkdir -p /usr/lib/tazpkg
psychomaniak@716 2 # /usr/lib/slitaz ?
psychomaniak@716 3
psychomaniak@716 4 for i in \
psychomaniak@716 5 tazpkg tazpkg-box tazpkg-notify \
psychomaniak@716 6 modules/tazpkg-convert modules/tazpkg-find-depends \
psychomaniak@716 7 tazpanel/pkgs.cgi tazpanel/pkgs ;
psychomaniak@716 8 do
psychomaniak@716 9 fi=$(basename $i)
psychomaniak@716 10 case $i in
psychomaniak@716 11 tazpanel/pkgs.cgi) DIR=/var/www/tazpanel ;;
psychomaniak@716 12 tazpanel/pkgs) DIR=/var/www/tazpanel/menu.d ;;
psychomaniak@716 13 modules/*) DIR=/usr/lib/tazpkg ;;
psychomaniak@716 14 *) DIR=/usr/bin ;;
psychomaniak@716 15 esac
psychomaniak@716 16 [ -f "$DIR/$fi" ] && rm $DIR/$fi
psychomaniak@716 17 wget -P $DIR hg.slitaz.org/tazpkg/raw-file/tip/$i
psychomaniak@716 18 chmod +x $DIR/$fi
psychomaniak@716 19 done