summaryrefslogtreecommitdiff
path: root/cron/live-build-cron-images
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-07-20 10:29:57 +0200
committerDaniel Baumann <daniel@debian.org>2011-07-20 10:29:57 +0200
commit4c08b4f17b9bf54e45ccf154cf09a81fef8c1930 (patch)
tree5c2df0fcf51a94c73263205e20c171216677d627 /cron/live-build-cron-images
parent968be1f426e442f9545fc08e7ede617525e6307f (diff)
downloadvyos-live-build-4c08b4f17b9bf54e45ccf154cf09a81fef8c1930.tar.gz
vyos-live-build-4c08b4f17b9bf54e45ccf154cf09a81fef8c1930.zip
Updating cron scripts.
Diffstat (limited to 'cron/live-build-cron-images')
-rwxr-xr-xcron/live-build-cron-images46
1 files changed, 17 insertions, 29 deletions
diff --git a/cron/live-build-cron-images b/cron/live-build-cron-images
index 6e89b77df..ed709a259 100755
--- a/cron/live-build-cron-images
+++ b/cron/live-build-cron-images
@@ -1,23 +1,11 @@
#!/bin/sh
-## live-build-cron-images(7) - FIXME
-## Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
+## live-build(7) - System Build Scripts
+## Copyright (C) 2006-2011 Daniel Baumann <daniel@debian.org>
##
-## This program is free software: you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation, either version 3 of the License, or
-## (at your option) any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program. If not, see <http://www.gnu.org/licenses/>.
-##
-## The complete text of the GNU General Public License
-## can be found in /usr/share/common-licenses/GPL-3 file.
+## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
+## This is free software, and you are welcome to redistribute it
+## under certain conditions; see COPYING for details.
#set -e
@@ -58,18 +46,18 @@ Init ()
Setup ()
{
- TMPDIR="$(mktemp -d -t live-build-cron-images.XXXXXXXX)"
+ _TMPDIR="$(mktemp -d -t live-build-cron-images.XXXXXXXX)"
case "${LIVE_BUILD_CRON_IMAGES_BUILD}" in
git)
- cd "${TMPDIR}"
+ cd "${_TMPDIR}"
git clone git://live.debian.net/git/live-build.git
git checkout debian-old-2.0
- LB_BASE="${TMPDIR}/live-build"
+ LB_BASE="${_TMPDIR}/live-build"
export LB_BASE
- PATH="${PATH}:${TMPDIR}/live-build/scripts/build"
+ PATH="${PATH}:${_TMPDIR}/live-build/scripts/build"
export PATH
;;
@@ -82,10 +70,10 @@ Setup ()
dget "http://live.debian.net/archive/packages/live-build/${LIVE_BUILD}/live-build_${LIVE_BUILD}.dsc"
dpkg-source -x live-build_${LIVE_BUILD}.dsc
- LB_BASE="${TMPDIR}/live-build-$(echo ${LIVE_BUILD} | awk -F- '{ print $1 }')"
+ LB_BASE="${_TMPDIR}/live-build-$(echo ${LIVE_BUILD} | awk -F- '{ print $1 }')"
export LB_BASE
- PATH="${PATH}:${TMPDIR}/live-build-$(echo ${LIVE_BUILD} | awk -F- '{ print $1 }')/scripts/build"
+ PATH="${PATH}:${_TMPDIR}/live-build-$(echo ${LIVE_BUILD} | awk -F- '{ print $1 }')/scripts/build"
export PATH
else
echo "E: dget - command not found"
@@ -100,8 +88,8 @@ Setup ()
;;
esac
- mkdir -p "${TMPDIR}/build"
- cd "${TMPDIR}/build"
+ mkdir -p "${_TMPDIR}/build"
+ cd "${_TMPDIR}/build"
# live-boot
if [ -n "${LIVE_BOOT}" ]
@@ -163,7 +151,7 @@ Setup ()
Build ()
{
- cd "${TMPDIR}/build"
+ cd "${_TMPDIR}/build"
for DISTRIBUTION in ${DISTRIBUTIONS}
do
@@ -251,7 +239,7 @@ Install ()
BUILD="$((${BUILD} + 1))"
done
- cd "${TMPDIR}/build"
+ cd "${_TMPDIR}/build"
# Move iso images
if ls debian-live-${DISTRIBUTION}-${ARCHITECTURE}-*.iso* > /dev/null 2>&1
@@ -309,11 +297,11 @@ Install ()
Clean ()
{
- cd "${TMPDIR}/build"
+ cd "${_TMPDIR}/build"
lb clean --purge
cd "${CURDIR}"
- rm -rf "${TMPDIR}"
+ rm -rf "${_TMPDIR}"
}
Trace ()