From d1ee66e44c8272bb7a0053a456a3d8b0bd152268 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:05:10 +0200 Subject: Adding live-helper 1.0~a12-1. --- helpers/lh_source_iso | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'helpers/lh_source_iso') diff --git a/helpers/lh_source_iso b/helpers/lh_source_iso index 078474785..426fac7e9 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 # # 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" -- cgit v1.2.3