Skip to content

Commit

Permalink
Change package versioning to use hard-coded value.
Browse files Browse the repository at this point in the history
This is due to the use of github which produces source tarballs which
can be used for package generation. These tarballs are used outside of
git so git versioning is not possible, hence the hard-coded value.
Because of this, other packaging should probably use the source tarball
rather than a dist tarball.

Signed-off-by: Mark Grant <[email protected]>
  • Loading branch information
m-grant-prg committed Apr 7, 2018
1 parent a3bcd8f commit 8b1c751
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -44,35 +44,36 @@
# directory. #
# Use automake sub-directory and tar #
# Posix format directives. #
# 07/04/2018 MG 1.0.11 Change package versioning to use #
# hard-coded value. This is due to the #
# use of github which produces source #
# tarballs which can be used for package #
# generation. These tarballs are used #
# outside of git so git versioning is not #
# possible, hence the hard-coded value. #
# Because of this, other packaging should #
# probably use the source tarball rather #
# than a dist tarball. #
# #
#########################################################################

AC_REVISION([$Revision: 1.0.10 $])
AC_REVISION([$Revision: 1.0.11 $])

AC_PREREQ([2.69])


########################
#
# The following two macros use git to provide versioning information.
# If git is not initialised or no commit has been made, then 'Pre-Release'
# will be used.
# If no Tag has been created then just a commit identifier will be used.
# If a tag has been created then the most recent tag, plus number of commits
# since the tag, plus a commit identifier will be used.
# The package version in ac init will be used to create an output variable which
# can be used by ac output and / or the sed setup below to substitute bookmarks
# in source files.
#
########################

AC_INIT([apt-get Maintenance Commands Script], m4_esyscmd([ \
git describe --always 1>/dev/null 2>/dev/null \
&& git describe --always | tr -d '\n' \
|| echo 'Pre-Release' | tr -d '\n']),
[[email protected]], [agmaint])
AC_INIT(apt-get Maintenance Commands Script, v1.0.16,
[email protected], agmaint)

AC_SUBST([pkgversion], [m4_esyscmd([ \
git describe --always 1>/dev/null 2>/dev/null \
&& git describe --always | tr -d '\n' \
|| echo 'Pre-Release' | tr -d '\n'])])
AC_SUBST(pkgversion, $PACKAGE_VERSION)


########################
Expand Down

0 comments on commit 8b1c751

Please sign in to comment.