diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:10 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | d1ee66e44c8272bb7a0053a456a3d8b0bd152268 (patch) | |
tree | 9e6722124d18f9358999b0da840f27857f97fede /helpers/lh_source_iso | |
parent | 86726af9f5e7873d6cdbbe108fae1c41b1b67db0 (diff) | |
download | live-build-d1ee66e44c8272bb7a0053a456a3d8b0bd152268.zip live-build-d1ee66e44c8272bb7a0053a456a3d8b0bd152268.tar.gz |
Adding live-helper 1.0~a12-1.
Diffstat (limited to 'helpers/lh_source_iso')
-rwxr-xr-x | helpers/lh_source_iso | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/helpers/lh_source_iso b/helpers/lh_source_iso index 0784747..426fac7 100755 --- a/helpers/lh_source_iso +++ b/helpers/lh_source_iso @@ -1,6 +1,6 @@ #!/bin/sh -# lh_source_iso(1) - build source iso image +# lh_source_iso(1) - build iso source image # Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org> # # live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. @@ -16,7 +16,7 @@ do done # Set static variables -DESCRIPTION="build source iso image" +DESCRIPTION="build iso source image" HELP="" USAGE="${PROGRAM} [--force]" @@ -61,7 +61,7 @@ do # Installing depends Install_package - # Remove old source + # Remove old iso image if [ -f source.iso ] then rm -f source.iso @@ -72,11 +72,31 @@ do GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -v" fi + if [ -n "${LIVE_ISO_APPLICATION}" ] && [ "${LIVE_ISO_APPLICATION}" != "none" ] + then + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -A \"${LIVE_ISO_APPLICATION}\"" + fi + + if [ -n "${LIVE_ISO_PREPARER}" ] && [ "${LIVE_ISO_PREPARER}" != "none" ] + then + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -p \"${LIVE_ISO_PREPARER}\"" + fi + + if [ -n "${LIVE_ISO_PUBLISHER}" ] && [ "${LIVE_ISO_PUBLISHER}" != "none" ] + then + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -publisher \"${LIVE_ISO_PUBLISHER}\"" + fi + + if [ -n "${LIVE_ISO_VOLUME}" ] && [ "${LIVE_ISO_VOLUME}" != "none" ] + then + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LIVE_ISO_VOLUME}\"" + fi + # Moving image mv source chroot cat >> chroot/source.sh << EOF -${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -A "Debian Live" -p "Debian Live; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org" -publisher "Debian Live; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org" -V "${LIVE_ISO_VOLUME}" -o source.iso -r -J -l -cache-inodes source +${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o source.iso -r -J -l -cache-inodes source EOF Chroot "sh source.sh" |