Skip to content

Commit

Permalink
at: Support ~ in version number
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Grant <[email protected]>
  • Loading branch information
m-grant-prg committed Aug 4, 2023
1 parent 663bfed commit 4cf00d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#########################################################################
# #
# Script ID: ./Makefile.am #
# Author: Copyright (C) 2020, 2021 Mark Grant #
# Author: Copyright (C) 2020, 2021, 2023 Mark Grant #
# #
# Released under the GPLv3 only. #
# SPDX-License-Identifier: GPL-3.0-only #
Expand All @@ -20,6 +20,7 @@
# 11/02/2020 MG 1.0.1 Initial version. #
# 08/11/2021 MG 1.0.2 Add misc directory to DIST. #
# 23/11/2021 MG 1.0.3 Tighten SPDX tag. #
# 04/08/2023 MG 1.0.4 Enable use of v1.1.1~rc1 type vesrion #
# #
#########################################################################

Expand All @@ -42,12 +43,13 @@ EXTRA_DIST = $(srcdir)/AUTHORS $(srcdir)/ChangeLog $(srcdir)/COPYING \

srctarball:
@cwd="$${PWD}" && \
targ="$${cwd}/@PACKAGE_TARNAME@-@[email protected]" && \
varg="$$(echo @PACKAGE_VERSION@ | sed -e s/\-rc/\~rc/ )" && \
targ="$${cwd}/@PACKAGE_TARNAME@-$${varg}.tar.gz" && \
cd @srcdir@ && \
echo "making srctarball from @srcdir@" && \
echo "GA $${targ}" && \
git archive --format=tar.gz \
--prefix=@PACKAGE_TARNAME@-@PACKAGE_VERSION@/ \
--prefix=@PACKAGE_TARNAME@-$${varg}/ \
--output=$${targ} \
HEAD && \
cd -
Expand Down

0 comments on commit 4cf00d3

Please sign in to comment.