From: Sean Whitton Date: Fri, 14 Oct 2022 20:52:38 +0000 (-0700) Subject: d/copyright: Fix the names of upstream's release tag and our tarball X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~63 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3e6adb882ab5727515e14620dde2b26d953ad1c3;p=emacs.git d/copyright: Fix the names of upstream's release tag and our tarball Introduce a new substitution variable, DEBORIG_VERSION. --- diff --git a/debian/copyright b/debian/copyright index 6eda0800c5d..a56d3a318eb 100644 --- a/debian/copyright +++ b/debian/copyright @@ -10,8 +10,8 @@ Comment: The original source for this package can be found at git://git.savannah.gnu.org/emacs.git under the - emacs-28.1 tag. That tag was used to create the - Debian upstream archive (emacs_1:28.1+1.orig.tar.xz) + emacs-28.2 tag. That tag was used to create the + Debian upstream archive (emacs_28.2+1.orig.tar.xz) after making adjustments to comply with the DFSG (see below). Please see /usr/share/doc/emacs-common/README.Debian.gz for a diff --git a/debian/copyright.in b/debian/copyright.in index 21c8135fbdc..54fad929e85 100644 --- a/debian/copyright.in +++ b/debian/copyright.in @@ -11,7 +11,7 @@ Comment: The original source for this package can be found at git://git.savannah.gnu.org/emacs.git under the emacs-@UPSTREAM_VERSION@ tag. That tag was used to create the - Debian upstream archive (emacs_@DEBSRC_VERSION@.orig.tar.xz) + Debian upstream archive (emacs_@DEBORIG_VERSION@.orig.tar.xz) after making adjustments to comply with the DFSG (see below). Please see /usr/share/doc/emacs-common/README.Debian.gz for a diff --git a/debian/rules b/debian/rules index 125fb59c53b..46a7320a9a7 100755 --- a/debian/rules +++ b/debian/rules @@ -68,6 +68,9 @@ debian_rev := $(shell $(pf); echo $(debian_ver) | perl -pe 's/.*-//o') # before the last '-' debsrc_ver := $(shell $(pf); echo $(debian_ver) | perl -pe 's/-[^-]+$$//o') +# Everything before the last '-' minus epoch +deborig_ver := $(shell echo $(debsrc_ver) | sed 's/^[0-9]\+://') + ###################################################################### # Customizable variables @@ -181,6 +184,7 @@ define deb_sub -e "s|\@DEBIAN_REV\@|$(deb_rev)|go;" \ -e "s|\@UPSTREAM_VERSION\@|$(upstream_ver)|go;" \ -e "s|\@DEBSRC_VERSION\@|$(debsrc_ver)|go;" \ + -e "s|\@DEBORIG_VERSION\@|$(deborig_ver)|go;" \ -e "s|\@MENU_VERSION\@|$(menu_ver)|go;" \ -e "s|\@X_SUPPORT\@|$(xsupport)|go;" \ -e "s|\@BIN_PRIORITY\@|$(bin_priority)|go;" \ @@ -195,6 +199,7 @@ check-vars: @echo "upstream_ver: $(upstream_ver)" @echo "debian_ver: $(debian_ver)" @echo "debsrc_ver: $(debsrc_ver)" + @echo "deborig_ver: $(deborig_ver)" @echo "debian_rev: $(debian_rev)" @echo "runtime_ver: $(runtime_ver)" @echo "major_ver: $(major_ver)"