diff options
author | Jelmer Vernooij <jelmer@debian.org> | 2011-04-22 03:15:34 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@debian.org> | 2011-04-22 03:15:34 +0200 |
commit | c2e94e52300c8d8a98d42decfa8794a93d08cfb4 (patch) | |
tree | 5159f77f3487186ee27c38f6c4bbac64eed8f67b /debian/build-orig.sh | |
parent | 53d8816c9ad372ed36b21bb91e6b8d1b9eacf916 (diff) | |
parent | 2970fd520aecd6d3956c12362e54bbf7ca0d9895 (diff) |
* New upstream release.
* New upstream snapshot.
* New upstream snapshot.
Diffstat (limited to 'debian/build-orig.sh')
-rwxr-xr-x | debian/build-orig.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/build-orig.sh b/debian/build-orig.sh index f3d41f8..523b172 100755 --- a/debian/build-orig.sh +++ b/debian/build-orig.sh @@ -1,5 +1,11 @@ #!/bin/bash -e +version=$( dpkg-parsechangelog -l`dirname $0`/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$//' ) +if echo $version | grep -v git >/dev/null; then + # Not a snapshot, use watch + exit 1 +fi + if [ -z "$SAMBA_GIT_URL" ]; then SAMBA_GIT_URL=git://git.samba.org/samba.git fi @@ -11,10 +17,8 @@ else git clone --depth 1 $SAMBA_GIT_URL $LDBTMP fi pushd $LDBTMP/source4/lib/ldb -./autogen.sh ./configure make dist popd -version=$( dpkg-parsechangelog -l`dirname $0`/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$//' ) mv $LDBTMP/source4/lib/ldb/ldb-*.tar.gz ldb_$version.orig.tar.gz rm -rf $LDBTMP |