[Git][debian-gis-team/qmapshack][master] Create components tarball automatically with uscan.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Sat Nov 7 19:12:06 GMT 2026
Bas Couwenberg pushed to branch master at Debian GIS Project / qmapshack
Commits:
324acff4 by Bas Couwenberg at 2026-11-07T20:04:59+01:00
Create components tarball automatically with uscan.
- - - - -
3 changed files:
- debian/changelog
- debian/create-components.sh
- debian/watch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+qmapshack (1.21.1+ds-2) UNRELEASED; urgency=medium
+
+ * Create components tarball automatically with uscan.
+
+ -- Bas Couwenberg <sebastic at debian.org> Sat, 07 Nov 2026 20:04:54 +0100
+
qmapshack (1.21.1+ds-1) unstable; urgency=medium
* New upstream release.
=====================================
debian/create-components.sh
=====================================
@@ -1,13 +1,30 @@
#!/bin/bash
if [ -z "$1" ]; then
- echo "Usage: $0 <ORIGTARGZ>"
+ echo "Usage: $0 <ORIGTARGZ>|--upstream-version <VERSION>"
+ exit 1
+fi
+if [ "$1" = "--upstream-version" ] && [ -z "$2" ]; then
+ echo "Usage: $0 --upstream-version <VERSION>"
exit 1
fi
set -e
-UPSTREAM_TARBALL="$(realpath -s "$1")"
+if [ "$1" = "--upstream-version" ]; then
+ DEBIAN_DIR="$(realpath -s "$(dirname "$0")")"
+ PARENT_DIR="$(dirname "$(dirname "${DEBIAN_DIR}")")"
+
+ CHANGELOG="${DEBIAN_DIR}/changelog"
+
+ SOURCE=$(dpkg-parsechangelog -S Source -l "${CHANGELOG}")
+ VERSION="$2"
+
+ # shellcheck disable=SC2012
+ UPSTREAM_TARBALL="$(ls -t "${PARENT_DIR}/${SOURCE}_${VERSION}".orig.tar.* | head -1)"
+else
+ UPSTREAM_TARBALL="$(realpath -s "$1")"
+fi
if [ ! -e "${UPSTREAM_TARBALL}" ]; then
echo "Error: Upstream tarball not found"
=====================================
debian/watch
=====================================
@@ -5,4 +5,6 @@ uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/,
filenamemangle=s/(?:.*?)?(?:rel|v|V|qmapshack)?[\-\_]?(?:%20)?(\d+\.\d\S+)\.(tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))/qmapshack-$1.$2/,\
repacksuffix=+ds \
https://github.com/Maproom/qmapshack/tags \
-(?:.*?/archive/(?:.*?/)?)?(?:rel|v|V|qmapshack)?[\-\_]?(?:%20)?(\d+\.\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
+(?:.*?/archive/(?:.*?/)?)?(?:rel|v|V|qmapshack)?[\-\_]?(?:%20)?(\d+\.\d\S+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) \
+debian \
+debian/create-components.sh
View it on GitLab: https://salsa.debian.org/debian-gis-team/qmapshack/-/commit/324acff4c89f0bd854147de09a6196d31afb74a4
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/qmapshack/-/commit/324acff4c89f0bd854147de09a6196d31afb74a4
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20261107/3032b161/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list