make it more universal yet still preserve my target directory

pull/5/head
Tomas M 2012-09-04 20:43:12 -05:00
parent 00a8051928
commit 4fc76b68df
1 changed files with 6 additions and 2 deletions

8
build
View File

@ -44,8 +44,12 @@ cp /boot/vmlinuz $BOOT/
# create ISO for CD image (so I can test it) # create ISO for CD image (so I can test it)
cd "$LIVEKITDATA" cd "$LIVEKITDATA"
mkisofs -o "/mnt/z/slax-prealpha-$(uname -m).iso" -v -J -R -D -A "$LIVEKITNAME" -V "$LIVEKITNAME" \ TARGET=/mnt/z
if [ ! -d $TARGET ]; then
TARGET=/tmp
fi
mkisofs -o "$TARGET/$LIVEKITNAME-$(uname -m).iso" -v -J -R -D -A "$LIVEKITNAME" -V "$LIVEKITNAME" \
-no-emul-boot -boot-info-table -boot-load-size 4 \ -no-emul-boot -boot-info-table -boot-load-size 4 \
-b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \ -b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \
>/dev/null 2>/dev/null >/dev/null 2>/dev/null
sync