summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_disk
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody.somerville@canonical.com>2009-04-15 22:07:26 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:44 +0100
commita486d3e1ad9401dfff9c0f0a98784bf8dfce1da7 (patch)
treed33ff4435e3c201aca1e2e5d123d84e47dbc15ac /helpers/lh_binary_disk
parent442429dd15495710656d798107cc7bb6019eabab (diff)
downloadlive-build-a486d3e1ad9401dfff9c0f0a98784bf8dfce1da7.zip
live-build-a486d3e1ad9401dfff9c0f0a98784bf8dfce1da7.tar.gz
Adding Ubuntu mode.
Diffstat (limited to 'helpers/lh_binary_disk')
-rwxr-xr-xhelpers/lh_binary_disk16
1 files changed, 11 insertions, 5 deletions
diff --git a/helpers/lh_binary_disk b/helpers/lh_binary_disk
index 279da75..a7674e7 100755
--- a/helpers/lh_binary_disk
+++ b/helpers/lh_binary_disk
@@ -52,6 +52,7 @@ DISTRIBUTION="$(echo ${LH_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')"
DISTRIBUTION="${DISTRIBUTION}$(echo ${LH_DISTRIBUTION} | cut -b 2-)"
eval VERSION="$`echo RELEASE_${LH_DISTRIBUTION}`"
+TITLE="Debian GNU/Linux"
case "${LH_MODE}" in
debian)
STRING="Official Snapshot ${ARCHITECTURE}"
@@ -61,6 +62,11 @@ case "${LH_MODE}" in
STRING="Official ${ARCHITECTURE}"
;;
+ ubuntu)
+ TITLE="Ubuntu GNU/Linux"
+ STRING="Build ${ARCHITECTURE}"
+ ;;
+
*)
STRING="Snapshot ${ARCHITECTURE}"
;;
@@ -74,7 +80,7 @@ case "${LH_DEBIAN_INSTALLER}" in
echo "full_cd" > binary/.disk/cd_type
- echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
+ echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/CD Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
cp "${LH_BASE}"/data/debian-cd/${LH_DISTRIBUTION}/${LH_ARCHITECTURE}_udeb_include binary/.disk/udeb_include
;;
@@ -88,9 +94,9 @@ case "${LH_DEBIAN_INSTALLER}" in
if [ "${LH_DEBIAN_INSTALLER}" = "live" ]
then
- echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/INSTALL Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
+ echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/INSTALL Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
else
- echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETINST Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
+ echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/NETINST Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
fi
@@ -107,13 +113,13 @@ case "${LH_DEBIAN_INSTALLER}" in
echo "not_complete" > binary/.disk/cd_type
- echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/BC Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
+ echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE/BC Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
cp "${LH_BASE}"/data/debian-cd/${LH_DISTRIBUTION}/${LH_ARCHITECTURE}_businesscard_udeb_include binary/.disk/udeb_include
;;
disabled)
- echo "Debian GNU/Linux ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
+ echo "${TITLE} ${VERSION} \"${DISTRIBUTION}\" - ${STRING} LIVE Binary $(date +%Y%m%d-%H:%M)" > binary/.disk/info
;;
esac