[Pkg-samba-maint] r1634 - branches/samba4/debian
ctrlsoft-guest at alioth.debian.org
ctrlsoft-guest at alioth.debian.org
Tue Nov 27 22:38:06 UTC 2007
Author: ctrlsoft-guest
Date: 2007-11-27 22:38:05 +0000 (Tue, 27 Nov 2007)
New Revision: 1634
Added:
branches/samba4/debian/build-orig.sh
Log:
Add script for building orig tarball.
Added: branches/samba4/debian/build-orig.sh
===================================================================
--- branches/samba4/debian/build-orig.sh (rev 0)
+++ branches/samba4/debian/build-orig.sh 2007-11-27 22:38:05 UTC (rev 1634)
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Build a source tarball for Samba 4
+
+samba_repos=svn://svn.samba.org/samba/
+version=$( dpkg-parsechangelog -l`dirname $0`/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$//' )
+
+if echo $version | grep svn > /dev/null; then
+ # SVN Snapshot
+ revno=`echo $version | sed 's/^.\+~svn//'`
+ svn export -r$revno $samba_repos/branches/SAMBA_4_0 samba-$version
+else
+ # Release
+ svn export $samba_repos/tags/release-`echo $version | sed 's/\./-/g'` samba-$version
+fi
+
+cd samba-$version/source && ./autogen.sh && cd ../..
+tar cvz samba-$version > samba_$version.orig.tar.gz
Property changes on: branches/samba4/debian/build-orig.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-samba-maint
mailing list