From 4fc76b68df45c7c1f842127337ab6ae1e8348a45 Mon Sep 17 00:00:00 2001 From: Tomas M Date: Tue, 4 Sep 2012 20:43:12 -0500 Subject: [PATCH] make it more universal yet still preserve my target directory --- build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build b/build index d17998a..d2ad53e 100755 --- a/build +++ b/build @@ -44,8 +44,12 @@ cp /boot/vmlinuz $BOOT/ # create ISO for CD image (so I can test it) 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 \ -b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \ >/dev/null 2>/dev/null -sync \ No newline at end of file