[Pkg-samba-maint] r3517 - trunk/samba4/debian
jelmer at alioth.debian.org
jelmer at alioth.debian.org
Fri Jun 18 21:05:56 UTC 2010
Author: jelmer
Date: 2010-06-18 21:05:55 +0000 (Fri, 18 Jun 2010)
New Revision: 3517
Modified:
trunk/samba4/debian/build-orig.sh
Log:
Use SAMBA_GIT_URL environment variable rather than first argument so source path can be overridden for debian/rules get-orig-source.
Modified: trunk/samba4/debian/build-orig.sh
===================================================================
--- trunk/samba4/debian/build-orig.sh 2010-06-15 21:04:09 UTC (rev 3516)
+++ trunk/samba4/debian/build-orig.sh 2010-06-18 21:05:55 UTC (rev 3517)
@@ -1,16 +1,14 @@
#!/bin/bash
-GIT_URL=$1
-shift 1
-if [ -z "$GIT_URL" ]; then
- GIT_URL=git://git.samba.org/samba.git
+if [ -z "$SAMBA_GIT_URL" ]; then
+ SAMBA_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.]\+$//' )
-if [ -d $GIT_URL/.bzr ]; then
- bzr export samba4-upstream-$version $GIT_URL
+if [ -d "$SAMBA_GIT_URL/.bzr" ]; then
+ bzr export samba4-upstream-$version "$SAMBA_GIT_URL"
else
- git clone $GIT_URL samba4-upstream-$version
+ git clone "$SAMBA_GIT_URL" samba4-upstream-$version
fi
pushd "samba4-upstream-$version/source4"
More information about the Pkg-samba-maint
mailing list