wok-6.x rev 2118
Up mirror-tools/mkpkgiso (0.3), fix hybrid creation
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 31 09:32:09 2009 +0000 (2009-01-31) |
parents | 912ebeaf7a69 |
children | c914d88b8a12 |
files | mirror-tools/stuff/usr/bin/mkpkgiso |
line diff
1.1 --- a/mirror-tools/stuff/usr/bin/mkpkgiso Fri Jan 30 17:25:24 2009 +0000 1.2 +++ b/mirror-tools/stuff/usr/bin/mkpkgiso Sat Jan 31 09:32:09 2009 +0000 1.3 @@ -5,7 +5,7 @@ 1.4 # Authors : Eric Joseph-Alexandre <erjo@slitaz.org> 1.5 # Pascal Bellard <pascal.bellard@slitaz.org> 1.6 1.7 -VERSION=0.2 1.8 +VERSION=0.3 1.9 1.10 ROOT=/home/slitaz/iso 1.11 TEMP_DIR=${ROOT}/_iso.$$ 1.12 @@ -148,6 +148,7 @@ 1.13 *\ --boot\ *) 1.14 echo -n "Creating boot tree" 1.15 isoinfo -R -l -i $iso | awk '/^Directory/ { path=$4 } /^-/ { print path$12 }' | while read file; do 1.16 + [ "$(basename $file)" == ".." ] && continue 1.17 [ "$file" = "/boot/isolinux/boot.cat" ] && continue 1.18 [ -d "$(dirname $TEMP_DIR/$file)" ] || 1.19 mkdir -p "$(dirname $TEMP_DIR/$file)" 1.20 @@ -188,12 +189,12 @@ 1.21 1.22 echo "$(du -hs $OUTPUT | awk '{ print $1 }') used by iso image." 1.23 1.24 +cd ${ROOT} 1.25 echo -n "Create hybrid DVD/CDROM" 1.26 -[ -x /usr/bin/isohybrid ] && /usr/bin/isohybrid $IMAGE 1.27 +[ -x /usr/bin/isohybrid ] && /usr/bin/isohybrid $IMAGE 2> /dev/null 1.28 status 1.29 1.30 echo -n "Calculate md5sum" 1.31 -cd ${ROOT} 1.32 /usr/bin/md5sum $IMAGE > $(basename $IMAGE .iso).md5 1.33 status 1.34