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 | |
parent | ba2322bb2b453a848dccb7f80fbe5d72b373926e (diff) | |
download | live-build-63631975b71ac083c07fd927d0b7264af73f2e24.zip live-build-63631975b71ac083c07fd927d0b7264af73f2e24.tar.gz |
Adding live-helper 1.0~a27-1.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/cron/manpages.sh | 6 | ||||
-rwxr-xr-x | examples/cron/snapshots.sh | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/examples/cron/manpages.sh b/examples/cron/manpages.sh index 571ea14..cac2b70 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 bdf6433..2075388 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 |