wok annotate slitaz-loram/stuff/loram.extract @ rev 8925
fix pmount: needs intltool to compile
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Mar 01 05:27:28 2011 +0100 (2011-03-01) |
parents | d9ddcc6d973c |
children |
rev | line source |
---|---|
pascal@370 | 1 rmdir usr |
pascal@4099 | 2 rmdir .usr* 2> /dev/null |
pascal@389 | 3 packedfs=".usr.cromfs" |
pascal@389 | 4 if [ -f $packedfs ]; then |
pascal@4099 | 5 bin/unmkcromfs $packedfs usr > /dev/null |
pascal@389 | 6 rm -f $packedfs |
pascal@389 | 7 fi |
pascal@1285 | 8 packedfs=".usr.sqfs" |
pascal@389 | 9 if [ -f $packedfs ]; then |
pascal@4099 | 10 sbin/unsquashfs -d usr $packedfs > /dev/null |
pascal@389 | 11 rm -f $packedfs |
pascal@389 | 12 fi |
pascal@370 | 13 ( cd usr/.moved ; find * -print ) | \ |
pascal@370 | 14 while read file; do |
pascal@370 | 15 [ -L "$file" ] || continue |
pascal@370 | 16 rm -f "$file" |
pascal@370 | 17 mv "usr/.moved/$file" "$file" |
pascal@370 | 18 done |
pascal@370 | 19 rm -rf usr/.moved |
pascal@954 | 20 for ii in lib/libz.so lib/libstdc++.so lib/libgcc_s.so; do |
pascal@954 | 21 [ -e $ii ] && mv $ii* usr/lib/ |
pascal@953 | 22 done |
pascal@2140 | 23 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free \ |
pascal@4454 | 24 bin/killall5 bin/seq bin/find bin/xargs bin/patch; do |
pascal@1620 | 25 [ -e usr/$ii ] && rm -f $ii |
pascal@1620 | 26 done |
pascal@5715 | 27 [ -e usr/bin/vcsa2txt ] || rm -f bin/conspy |