summaryrefslogtreecommitdiffstats
path: root/debian/build-orig.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:46:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 16:46:01 +0000
commit36c5669cda70873a70deda32df3559f312ded95f (patch)
tree1c4359c594302577c27023c34eb07e1e588a8405 /debian/build-orig.sh
parentAdding upstream version 0.16.1. (diff)
downloadtevent-36c5669cda70873a70deda32df3559f312ded95f.tar.xz
tevent-36c5669cda70873a70deda32df3559f312ded95f.zip
Adding debian version 0.16.1-1.debian/0.16.1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/build-orig.sh')
-rwxr-xr-xdebian/build-orig.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/build-orig.sh b/debian/build-orig.sh
new file mode 100755
index 0000000..4d95599
--- /dev/null
+++ b/debian/build-orig.sh
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+
+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]\+$//' )
+echo $version | grep git || exit 1
+
+TEVENTTMP=`mktemp -d`
+if [ -d $SAMBA_GIT_URL/.bzr ]; then
+ bzr co --lightweight $SAMBA_GIT_URL $TEVENTTMP
+else
+ git clone --depth 1 $SAMBA_GIT_URL $TEVENTTMP
+fi
+pushd $TEVENTTMP/lib/tevent
+./configure
+make dist
+popd
+mv $TEVENTTMP/lib/tevent/tevent-*.tar.gz tevent_$version.orig.tar.gz
+rm -rf $TEVENTTMP