[Debian-live-changes] r1344 - dists/trunk/live-helper/examples
Daniel Baumann
daniel at alioth.debian.org
Mon May 7 08:52:02 UTC 2007
Author: daniel
Date: 2007-05-07 08:52:01 +0000 (Mon, 07 May 2007)
New Revision: 1344
Added:
dists/trunk/live-helper/examples/svn-build.sh
Log:
Added: dists/trunk/live-helper/examples/svn-build.sh
===================================================================
--- dists/trunk/live-helper/examples/svn-build.sh 2007-05-07 08:05:13 UTC (rev 1343)
+++ dists/trunk/live-helper/examples/svn-build.sh 2007-05-07 08:52:01 UTC (rev 1344)
@@ -0,0 +1,57 @@
+#!/bin/sh -x
+
+# Needs: build-essential fakeroot lsb-release svn [...]
+
+PACKAGES="live-helper live-initramfs"
+VERSION="1.0a10~"
+SERVER="/srv/debian-unofficial/ftp/debian-live/debian-snapshot"
+
+for PACKAGE in ${PACKAGES}
+do
+ # Creating directory
+ mkdir -p /srv/tmp2/${PACKAGE}
+
+ # Getting sources
+ cd /srv/tmp2
+ svn co svn://svn.debian.org/debian-live/dists/trunk/${PACKAGE} ${PACKAGE}
+ cd "${OLDPWD}"
+
+ # Getting revision
+ cd /srv/tmp2/${PACKAGE}
+ REVISION="`svn info | awk '/Last Changed Rev: / { print $4 }'`"
+ mv /srv/tmp2/${PACKAGE} /srv/tmp2/${PACKAGE}-${REVISION}
+ cd "${OLDPWD}"
+
+ # Building package
+ cd /srv/tmp2/${PACKAGE}-${REVISION}
+ dch --newversion ${VERSION}${REVISION} --distribution UNRELEASED Autobuild snapshot.
+ dpkg-buildpackage -rfakeroot -sa -uc -us
+ cd "${OLDPWD}"
+ rm -rf cd /srv/tmp2/${PACKAGE}-${REVISION}
+
+ # Creating directory
+ if [ ! -d "${SERVER}" ]
+ then
+ mkdir -p "${SERVER}"
+ fi
+
+ # Removing old packages
+ if ls "${SERVER}"/"${PACKAGE}"* &> /dev/null
+ then
+ rm -f "${SERVER}"/"${PACKAGE}"*
+ fi
+
+ # Moving packages
+ mv /srv/tmp2/${PACKAGE}* "${SERVER}"
+done
+
+# Updating indices
+cd "${SERVER}"
+apt-ftparchive packages > Packages
+gzip -9 -c Packages ./ > Packages.gz
+
+apt-ftparchive sources > Sources
+gzip -9 -c Sources ./ > Sources.gz
+cd "${OLDPWD}"
+
+rm -rf /srv/tmp2
Property changes on: dists/trunk/live-helper/examples/svn-build.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the Debian-live-changes
mailing list