[Pkg-samba-maint] r3237 - trunk/samba4/debian

jelmer at alioth.debian.org jelmer at alioth.debian.org
Mon Jan 18 23:07:55 UTC 2010


Author: jelmer
Date: 2010-01-18 23:07:53 +0000 (Mon, 18 Jan 2010)
New Revision: 3237

Modified:
   trunk/samba4/debian/build-orig.sh
Log:
Support building snapshots from a bzr repo.

Modified: trunk/samba4/debian/build-orig.sh
===================================================================
--- trunk/samba4/debian/build-orig.sh	2010-01-17 12:31:30 UTC (rev 3236)
+++ trunk/samba4/debian/build-orig.sh	2010-01-18 23:07:53 UTC (rev 3237)
@@ -1,14 +1,17 @@
 #!/bin/bash
-REFSPEC=$1
-GIT_URL=$2
-shift 2
+GIT_URL=$1
+shift 1
 
 if [ -z "$GIT_URL" ]; then
 	GIT_URL=git://git.samba.org/samba.git
 fi
 
 version=$( dpkg-parsechangelog -l`dirname $0`/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$//' )
-git clone --depth 1 -l $GIT_URL samba4-$version
+if [ -d $GIT_URL/.bzr ]; then
+	bzr export samba4-$version $GIT_URL
+else
+	git clone --depth 1 -l $GIT_URL samba4-$version
+fi
 
 rm -rf "samba4-$version/source3"
 `dirname $0`/dfsg-clean.sh "samba4-$version"




More information about the Pkg-samba-maint mailing list