From d861dff528fe5b5cfebde9a7603e34b58d8004da Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 29 Feb 2008 12:10:35 +0100 Subject: Changing version scheme for snapshots. --- examples/cron/snapshots.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh index 2642646..6570737 100755 --- a/examples/cron/snapshots.sh +++ b/examples/cron/snapshots.sh @@ -64,21 +64,21 @@ do REVISION="$(date -d "${REVISION}" +%Y%m%d.%H%M%S)" # Check for existing package - if [ ! -f "${SERVER}"/${PACKAGE}_${VERSION}~${REVISION}.dsc ] || [ "${1}" = "--force" ] + if [ ! -f "${SERVER}"/${PACKAGE}_${VERSION}+${REVISION}.dsc ] || [ "${1}" = "--force" ] then UPDATE_INDICES="true" # Renaming directory - mv "${TEMPDIR}"/${PACKAGE} "${TEMPDIR}"/${PACKAGE}-${VERSION}~${REVISION} + mv "${TEMPDIR}"/${PACKAGE} "${TEMPDIR}"/${PACKAGE}-${VERSION}+${REVISION} # Building package - cd "${TEMPDIR}"/${PACKAGE}-${VERSION}~${REVISION} + cd "${TEMPDIR}"/${PACKAGE}-${VERSION}+${REVISION} rm -rf .git - dch --force-bad-version --newversion ${VERSION}~${REVISION} --distribution UNRELEASED Autobuild snapshot of SVN r${REVISION}. + dch --force-bad-version --newversion ${VERSION}+${REVISION} --distribution UNRELEASED Autobuild snapshot of SVN r${REVISION}. dpkg-buildpackage -rfakeroot -sa -uc -us # Removing sources - rm -rf "${TEMPDIR}"/${PACKAGE}-${VERSION}~${REVISION} + rm -rf "${TEMPDIR}"/${PACKAGE}-${VERSION}+${REVISION} # Creating directory mkdir -p "${SERVER}" -- cgit v1.0