diff options
| author | Christoph Berg <myon@debian.org> | 2021-02-03 22:54:29 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2021-02-03 22:54:29 +0100 |
| commit | 40574b7e2351202c19ca28e5f133511878d7ac3f (patch) | |
| tree | b878319b709de676ca3fe874c9894b6fe0fd1dec /debian | |
| parent | a416c7b996800d2caef50d8fcb24d4bada0d69dd (diff) | |
Provide a debian/uupdate.sh script to extract the upstream tarball and use it in debian/watch.
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/changelog | 7 | ||||
| -rwxr-xr-x | debian/uupdate.sh | 20 | ||||
| -rw-r--r-- | debian/watch | 5 |
3 files changed, 30 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index dfb46e4c..03d0fffd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +wsjtx (2.3.0+repack-2) UNRELEASED; urgency=medium + + * Provide a debian/uupdate.sh script to extract the upstream tarball + and use it in debian/watch. + + -- Christoph Berg <myon@debian.org> Wed, 03 Feb 2021 22:53:47 +0100 + wsjtx (2.3.0+repack-1) unstable; urgency=medium * New upstream version 2.3.0+repack. diff --git a/debian/uupdate.sh b/debian/uupdate.sh new file mode 100755 index 00000000..6013c2c2 --- /dev/null +++ b/debian/uupdate.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# to be invoked from uscan (debian/watch) + +set -eux + +: $0 "$@" +# $1 is expected to be "--upstream-version" +version="$2" +tarball="$3" + +# unpack original tarball, move inner tarball in place +tar xf $tarball +mv wsjtx-*/src/wsjtx.tgz ../wsjtx_$version+repack.orig.tar.gz +rm -rf wsjtx-*/ + +# import into git +gbp import-orig --pristine-tar ../wsjtx_$version+repack.orig.tar.gz + +#dch -v $version+repack-1 "New upstream version $version." diff --git a/debian/watch b/debian/watch index 6fb6cd08..27891a3e 100644 --- a/debian/watch +++ b/debian/watch @@ -1,3 +1,4 @@ -version=4 +# use version 3 so uupdate.sh is passed the tarball name +version=3 opts="uversionmangle=s/-rc/~rc/,dversionmangle=s/\+repack//,repacksuffix=+repack" \ -https://physics.princeton.edu/pulsar/k1jt/wsjtx.html .*wsjtx-(.*).tgz +https://physics.princeton.edu/pulsar/k1jt/wsjtx.html .*wsjtx-(.*).tgz debian debian/uupdate.sh |
