[Pkg-samba-maint] r1629 - trunk/tdb/debian
ctrlsoft-guest at alioth.debian.org
ctrlsoft-guest at alioth.debian.org
Sun Nov 25 19:03:58 UTC 2007
Author: ctrlsoft-guest
Date: 2007-11-25 19:03:58 +0000 (Sun, 25 Nov 2007)
New Revision: 1629
Added:
trunk/tdb/debian/build-orig.sh
Log:
Add script for building .orig.tar.gz.
Added: trunk/tdb/debian/build-orig.sh
===================================================================
--- trunk/tdb/debian/build-orig.sh (rev 0)
+++ trunk/tdb/debian/build-orig.sh 2007-11-25 19:03:58 UTC (rev 1629)
@@ -0,0 +1,18 @@
+#!/bin/sh
+# Build a source tarball for tdb
+
+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/^[0-9.]\+~svn//'`
+ svn export -r$revno $samba_repos/branches/SAMBA_4_0/source/lib/tdb tdb-$version
+ svn export -r$revno $samba_repos/branches/SAMBA_4_0/source/lib/replace tdb-$version/libreplace
+else
+ # Release
+ svn export $samba_repos/tags/TDB_`echo $version | sed 's/\./_/g'` tdb-$version
+fi
+
+cd tdb-$version && ./autogen.sh && cd ..
+tar cvz tdb-$version > tdb_$version.orig.tar.gz
Property changes on: trunk/tdb/debian/build-orig.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-samba-maint
mailing list