summaryrefslogtreecommitdiff
path: root/examples/cron
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:05:21 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:26 +0100
commit63631975b71ac083c07fd927d0b7264af73f2e24 (patch)
treed101839dcaff407f24698ac3bc111fe311dd0d5e /examples/cron
parentba2322bb2b453a848dccb7f80fbe5d72b373926e (diff)
downloadvyos-live-build-63631975b71ac083c07fd927d0b7264af73f2e24.tar.gz
vyos-live-build-63631975b71ac083c07fd927d0b7264af73f2e24.zip
Adding live-helper 1.0~a27-1.
Diffstat (limited to 'examples/cron')
-rwxr-xr-xexamples/cron/manpages.sh6
-rwxr-xr-xexamples/cron/snapshots.sh11
2 files changed, 9 insertions, 8 deletions
diff --git a/examples/cron/manpages.sh b/examples/cron/manpages.sh
index 571ea14b9..cac2b706d 100755
--- a/examples/cron/manpages.sh
+++ b/examples/cron/manpages.sh
@@ -1,9 +1,9 @@
#!/bin/sh
-# Needs: man2html svn
+# Needs: man2html git-core
# Static variables
-PACKAGES="live-helper live-initramfs live-initscripts live-webhelper"
+PACKAGES="live-helper live-initramfs"
TEMPDIR="/srv/tmp/manpages"
SERVER="/srv/debian-live/www/other/manpages"
@@ -48,7 +48,7 @@ do
# Getting sources
cd "${TEMPDIR}"
- svn co svn://svn.debian.org/debian-live/dists/trunk/${PACKAGE} ${PACKAGE}
+ git clone git://git.debian.org/git/users/daniel/${PACKAGE}.git
# Building manpages
for MANPAGE in "${TEMPDIR}"/${PACKAGE}/manpages/*
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh
index bdf643347..2075388c0 100755
--- a/examples/cron/snapshots.sh
+++ b/examples/cron/snapshots.sh
@@ -1,9 +1,9 @@
#!/bin/sh
-# Needs: build-essential fakeroot lsb-release svn [...]
+# Needs: build-essential fakeroot lsb-release git-core [...]
# Static variables
-PACKAGES="live-helper live-initramfs live-initscripts live-magic live-webhelper"
+PACKAGES="live-helper live-initramfs"
DEBEMAIL="debian-live-devel@lists.alioth.debian.org"
EMAIL="debian-live-devel@lists.alioth.debian.org"
@@ -52,7 +52,7 @@ do
# Getting sources
cd "${TEMPDIR}"
- svn co svn://svn.debian.org/debian-live/dists/trunk/${PACKAGE} ${PACKAGE}
+ git clone git://git.debian.org/git/users/daniel/${PACKAGE}.git
# Getting version
cd "${TEMPDIR}"/${PACKAGE}
@@ -60,7 +60,8 @@ do
# Getting revision
cd "${TEMPDIR}"/${PACKAGE}
- REVISION="`svn info | awk '/Last Changed Rev:/ { print $4 }'`"
+ REVISION="`git log | grep -m1 Date | awk -FDate: '{ print $2 }' | sed -e 's/+.*$//'`"
+ REVISION="`date -d "${REVISION}" +%Y%m%d.%H%M%S`"
# Check for existing package
if [ ! -f "${SERVER}"/${PACKAGE}_${VERSION}~${REVISION}.dsc ] || [ "${1}" = "--force" ]
@@ -72,7 +73,7 @@ do
# Building package
cd "${TEMPDIR}"/${PACKAGE}-${VERSION}~${REVISION}
- find . -type d -name .svn | xargs rm -rf
+ rm -rf .git
dch --force-bad-version --newversion ${VERSION}~${REVISION} --distribution UNRELEASED Autobuild snapshot of SVN r${REVISION}.
dpkg-buildpackage -rfakeroot -sa -uc -us