diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:21 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | 63631975b71ac083c07fd927d0b7264af73f2e24 (patch) | |
tree | d101839dcaff407f24698ac3bc111fe311dd0d5e /examples/cron/snapshots.sh | |
parent | ba2322bb2b453a848dccb7f80fbe5d72b373926e (diff) | |
download | vyos-live-build-63631975b71ac083c07fd927d0b7264af73f2e24.tar.gz vyos-live-build-63631975b71ac083c07fd927d0b7264af73f2e24.zip |
Adding live-helper 1.0~a27-1.
Diffstat (limited to 'examples/cron/snapshots.sh')
-rwxr-xr-x | examples/cron/snapshots.sh | 11 |
1 files changed, 6 insertions, 5 deletions
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 |