summaryrefslogtreecommitdiffstats
path: root/debian/build-orig.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:44:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:44:22 +0000
commite54dbac4459ef5635ce2aed14fc722c1bbd2bf5f (patch)
tree03fb532cf269ebb2763ec5ef7620892b1f4635b6 /debian/build-orig.sh
parentAdding upstream version 2.4.0. (diff)
downloadtalloc-debian.tar.xz
talloc-debian.zip
Adding debian version 2.4.0-f2.debian/2.4.0-f2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/build-orig.sh')
-rwxr-xr-xdebian/build-orig.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/build-orig.sh b/debian/build-orig.sh
new file mode 100755
index 0000000..e24b4c4
--- /dev/null
+++ b/debian/build-orig.sh
@@ -0,0 +1,20 @@
+#!/bin/bash -e
+
+if [ -z "$SAMBA_GIT_URL" ]; then
+ SAMBA_GIT_URL=git://git.samba.org/samba.git
+fi
+
+TALLOCTMP=`mktemp -d`
+if [ -d $SAMBA_GIT_URL/.bzr ]; then
+ bzr co --lightweight $SAMBA_GIT_URL $TALLOCTMP
+else
+ git clone --depth 1 $SAMBA_GIT_URL $TALLOCTMP
+fi
+pushd $TALLOCTMP/lib/talloc
+./autogen-waf.sh
+./configure
+make dist
+popd
+version=$( dpkg-parsechangelog -l`dirname $0`/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$//' )
+mv $TALLOCTMP/lib/talloc/talloc-*.tar.gz talloc_$version.orig.tar.gz
+rm -rf $TALLOCTMP