tazpkg annotate modules/set-release @ rev 972
Remove ashism ==
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 26 08:21:22 2019 +0100 (2019-02-26) |
parents | |
children |
rev | line source |
---|---|
al@844 | 1 #!/bin/sh |
al@844 | 2 # TazPkg - Tiny autonomous zone packages manager, hg.slitaz.org/tazpkg |
al@844 | 3 # set-release - TazPkg module |
al@844 | 4 # Change current release and upgrade packages |
al@844 | 5 |
al@844 | 6 |
al@844 | 7 # Connect function libraries |
al@844 | 8 . /lib/libtaz.sh |
al@844 | 9 |
al@844 | 10 # Get TazPkg working environment |
al@844 | 11 . @@MODULES@@/getenv |
al@844 | 12 |
al@844 | 13 |
al@844 | 14 |
al@844 | 15 |
al@844 | 16 echo "$1" > "$root/etc/slitaz-release" |
al@844 | 17 |
al@844 | 18 rm "$PKGS_DB/mirror" |
al@844 | 19 |
al@844 | 20 tazpkg recharge && tazpkg upgrade |
al@844 | 21 |
al@844 | 22 # Install missing depends |
al@844 | 23 cd "$INSTALLED" |
al@844 | 24 |
al@844 | 25 for dep in $(awk -F$'\t' '{print $8}' $PKGS_DB/installed.info | tr ' ' '\n' | sort -u); do |
al@844 | 26 [ ! -d "$dep" ] && tazpkg get-install "$dep" |
al@844 | 27 done |