summaryrefslogtreecommitdiff
path: root/examples/cron
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-02-29 12:10:35 +0100
committerDaniel Baumann <daniel@debian.org>2008-02-29 12:10:35 +0100
commit31913a9a616bbc627ccdd6a9a389e0b96dd3dbbe (patch)
treed00b9e77eab1fefb649640459d39995757496daf /examples/cron
parentb29652a4804e124ede8041ea7f1ad51dda186f9a (diff)
downloadvyos-live-build-31913a9a616bbc627ccdd6a9a389e0b96dd3dbbe.tar.gz
vyos-live-build-31913a9a616bbc627ccdd6a9a389e0b96dd3dbbe.zip
Changing version scheme for snapshots.
Diffstat (limited to 'examples/cron')
-rwxr-xr-xexamples/cron/snapshots.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh
index 264264688..6570737c8 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}"