[SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (9933c9767820c842c039581aedaea263575b414e)

Justin Boffemmyer scm at sourcemage.org
Wed Oct 8 22:41:02 EDT 2008


GIT changes to test cauldron by Justin Boffemmyer <flux at sourcemage.org>:

 scripts/mkiso.sh |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+)

New commits:
commit 9933c9767820c842c039581aedaea263575b414e
Author: Justin Boffemmyer <flux at sourcemage.org>
Commit: Justin Boffemmyer <flux at sourcemage.org>

    scripts/mkiso.sh: makes iso image from chroot
    
    This script takes 2 arguments and produces and ISO image file
    (compressed or not depending on options) named with version ($2) from
    a given iso chroot directory ($1).

diff --git a/scripts/mkiso.sh b/scripts/mkiso.sh
new file mode 100755
index 0000000..991b8aa
--- /dev/null
+++ b/scripts/mkiso.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+COMPRESS="no"
+KEEP=
+
+while getopts "z" Options
+do
+	case $Options in
+		"z") COMPRESS="yes"
+		"k") KEEP="-k"
+	esac
+done
+shift $(($OPTIND - 1))
+
+ISO_CHROOT=$1
+ISO_VERSION=$2
+
+mkisofs -R -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V SOURCEMAGE -o "smgl-${ISO_VERSION}.iso" "$ISO_CHROOT"
+
+if [[ "$COMPRESS" == yes || -n "$KEEP" ]]
+then
+	bzip2 -f -v $KEEP "${ISO_VERSION}.iso"
+fi
+



More information about the SM-Commit mailing list