diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:44:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:44:13 +0000 |
commit | 7cd910abbca26275b71713caf25004a38286214f (patch) | |
tree | 8c9387e60a8a2d7b4696226627674161c2a59887 /debian/build-orig.sh | |
parent | Adding upstream version 2.4.2. (diff) | |
download | talloc-debian.tar.xz talloc-debian.zip |
Adding debian version 2.4.2-1.debian/2.4.2-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/build-orig.sh')
-rwxr-xr-x | debian/build-orig.sh | 20 |
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 |