[Debian-live-changes] r1396 - dists/trunk/live-helper/examples
Daniel Baumann
daniel at alioth.debian.org
Tue May 8 19:56:20 UTC 2007
Author: daniel
Date: 2007-05-08 19:56:19 +0000 (Tue, 08 May 2007)
New Revision: 1396
Modified:
dists/trunk/live-helper/examples/snapshot-build.sh
Log:
Modified: dists/trunk/live-helper/examples/snapshot-build.sh
===================================================================
--- dists/trunk/live-helper/examples/snapshot-build.sh 2007-05-08 16:51:09 UTC (rev 1395)
+++ dists/trunk/live-helper/examples/snapshot-build.sh 2007-05-08 19:56:19 UTC (rev 1396)
@@ -57,32 +57,39 @@
REVISION="`svn info | awk '/Last Changed Rev: / { print $4 }'`"
cd "${OLDPWD}"
- # Renaming directory
- mv "${BUILD}"/${PACKAGE} "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
+ # Check for existing package
+ if [ ! -f "${SERVER}"/${PACKAGE}_${VERSION}~${REVISION}.dsc ]
+ then
+ # Renaming directory
+ mv "${BUILD}"/${PACKAGE} "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
- # Building package
- cd "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
- dch --force-bad-version --newversion ${VERSION}~${REVISION} --distribution UNRELEASED Autobuild snapshot of SVN r${REVISION}.
- dpkg-buildpackage -rfakeroot -sa -uc -us
- cd "${OLDPWD}"
+ # Building package
+ cd "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
+ dch --force-bad-version --newversion ${VERSION}~${REVISION} --distribution UNRELEASED Autobuild snapshot of SVN r${REVISION}.
+ dpkg-buildpackage -rfakeroot -sa -uc -us
+ cd "${OLDPWD}"
- # Removing sources
- rm -rf "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
+ # Removing sources
+ rm -rf "${BUILD}"/${PACKAGE}-${VERSION}~${REVISION}
- # Creating directory
- if [ ! -d "${SERVER}" ]
- then
- mkdir -p "${SERVER}"
- fi
+ # Creating directory
+ if [ ! -d "${SERVER}" ]
+ then
+ mkdir -p "${SERVER}"
+ fi
- # Removing old packages
- if ls "${SERVER}"/"${PACKAGE}"* &> /dev/null
- then
- rm -f "${SERVER}"/"${PACKAGE}"*
+ # Removing old packages
+ if ls "${SERVER}"/"${PACKAGE}"* &> /dev/null
+ then
+ rm -f "${SERVER}"/"${PACKAGE}"*
+ fi
+
+ # Moving packages
+ mv "${BUILD}"/${PACKAGE}* "${SERVER}"
+ else
+ # Remove sources
+ rm -rf "${BUILD}"/${PACKAGE}
fi
-
- # Moving packages
- mv "${BUILD}"/${PACKAGE}* "${SERVER}"
done
# Updating binary indices
More information about the Debian-live-changes
mailing list