sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (9933c9767820c842c039581aedaea263575b414e)
- From: Justin Boffemmyer <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (9933c9767820c842c039581aedaea263575b414e)
- Date: Wed, 8 Oct 2008 21:41:02 -0500
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
+
- [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (9933c9767820c842c039581aedaea263575b414e), Justin Boffemmyer, 10/08/2008
Archive powered by MHonArc 2.6.24.