summaryrefslogtreecommitdiff
path: root/examples/cron
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:05:11 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:30 +0100
commit85c342c299231131d22764c0dfdcf977c57ce147 (patch)
tree1226c8a7ad43a2dd53e411c2e379969424e88e32 /examples/cron
parentd1ee66e44c8272bb7a0053a456a3d8b0bd152268 (diff)
downloadvyos-live-build-85c342c299231131d22764c0dfdcf977c57ce147.tar.gz
vyos-live-build-85c342c299231131d22764c0dfdcf977c57ce147.zip
Adding live-helper 1.0~a13-1.
Diffstat (limited to 'examples/cron')
-rwxr-xr-xexamples/cron/etch+beryl.sh6
-rwxr-xr-xexamples/cron/etch.sh2
-rwxr-xr-xexamples/cron/snapshots.sh26
3 files changed, 19 insertions, 15 deletions
diff --git a/examples/cron/etch+beryl.sh b/examples/cron/etch+beryl.sh
index 28a51b5a6..66ed123b5 100755
--- a/examples/cron/etch+beryl.sh
+++ b/examples/cron/etch+beryl.sh
@@ -7,7 +7,7 @@ BUILD="etch+beryl"
# Begin custom defaults
AUTOBUILD="enabled"
-DATE="r0_1.0~a12-1"
+DATE="r0_1.0~a13-1"
DESTDIR="/srv/debian-unofficial/ftp/debian-live"
TEMPDIR="/srv/tmp/live-helper"
@@ -75,8 +75,8 @@ do
mkdir -p debian-live/config/chroot_sources
wget http://debian.beryl-project.org/root@lupine.me.uk.gpg -O debian-live/config/chroot_sources/beryl.build.gpg
wget http://debian.beryl-project.org/root@lupine.me.uk.gpg -O debian-live/config/chroot_sources/beryl.image.gpg
- cp /usr/share/live-helper/examples/sources.list/beryl debian-live/config/chroot_sources/beryl.build
- cp /usr/share/live-helper/examples/sources.list/beryl debian-live/config/chroot_sources/beryl.image
+ cp /usr/share/live-helper/examples/sources/beryl debian-live/config/chroot_sources/beryl.build
+ cp /usr/share/live-helper/examples/sources/beryl debian-live/config/chroot_sources/beryl.image
# Generating images
make-live -b iso -s generic --distribution ${DISTRIBUTION} --packages-lists ${PACKAGES_LIST} --mirror-bootstrap ${MIRROR_BOOTSTRAP} --mirror-bootstrap-security ${MIRROR_BOOTSTRAP_SECURITY} --mirror-binary ${MIRROR_BINARY} --mirror-binary-security ${MIRROR_BINARY_SECURITY} --source enabled ${OPTIONS} >> "${TEMPDIR}"/debian-live/log.txt 2>&1
diff --git a/examples/cron/etch.sh b/examples/cron/etch.sh
index cf8ec2eb4..e4cbb55fc 100755
--- a/examples/cron/etch.sh
+++ b/examples/cron/etch.sh
@@ -7,7 +7,7 @@ BUILD="etch"
# Begin custom defaults
AUTOBUILD="enabled"
-DATE="r0_1.0~a12-1"
+DATE="r0_1.0~a13-1"
DESTDIR="/srv/debian-unofficial/ftp/debian-live"
TEMPDIR="/srv/tmp/live-helper"
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh
index 760b041fa..655d5124f 100755
--- a/examples/cron/snapshots.sh
+++ b/examples/cron/snapshots.sh
@@ -3,7 +3,7 @@
# Needs: build-essential fakeroot lsb-release svn [...]
# Static variables
-PACKAGES="live-helper live-initramfs live-webhelper"
+PACKAGES="live-helper live-initramfs live-sysvinit live-webhelper"
DEBEMAIL="debian-live-devel@lists.alioth.debian.org"
EMAIL="debian-live-devel@lists.alioth.debian.org"
@@ -80,19 +80,23 @@ do
rm -rf "${TEMPDIR}"/${PACKAGE}-${VERSION}~${REVISION}
# Creating directory
- if [ ! -d "${SERVER}" ]
- then
- mkdir -p "${SERVER}"
- fi
+ mkdir -p "${SERVER}"
# Removing old packages
- if ls "${SERVER}"/"${PACKAGE}"* &> /dev/null
- then
- rm -f "${SERVER}"/"${PACKAGE}"*
- fi
+ for FILE in `awk {'print $5'} "${SERVER}"/"${PACKAGE}"*.changes | grep -e ".*\.deb$" -e ".*\.diff.gz$" -e ".*\.dsc$" -e ".*\.tar.gz$" -e ".*\.udeb$"`
+ do
+ rm -f "${SERVER}"/"${FILE}"
+ done
- # Moving packages
- mv "${TEMPDIR}"/${PACKAGE}* "${SERVER}"
+ rm -f "${SERVER}"/"${PACKAGE}"*.changes
+
+ # Installing new packages
+ for FILE in `awk {'print $5'} "${TEMPDIR}"/"${PACKAGE}"*.changes | grep -e ".*\.deb$" -e ".*\.diff.gz$" -e ".*\.dsc$" -e ".*\.tar.gz$" -e ".*\.udeb$"`
+ do
+ mv "${TEMPDIR}"/"${FILE}" "${SERVER}"
+ done
+
+ mv "${TEMPDIR}"/"${PACKAGE}"*.changes "${SERVER}"
else
# Remove sources
rm -rf "${TEMPDIR}"/${PACKAGE}