diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:46:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 16:46:01 +0000 |
commit | 36c5669cda70873a70deda32df3559f312ded95f (patch) | |
tree | 1c4359c594302577c27023c34eb07e1e588a8405 /debian/build-orig.sh | |
parent | Adding upstream version 0.16.1. (diff) | |
download | tevent-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-x | debian/build-orig.sh | 21 |
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 |