Skip to content

Commit

Permalink
use version-gen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Oct 18, 2022
1 parent c4c3777 commit 5ba4416
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
.dirstamp
.gdbinit
.version
.tarball-version
*.o
*.o.*
*.lo
Expand Down
16 changes: 10 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
AC_PREREQ([2.69])

# information on the package
AC_INIT([Safe C Library],[3.7.2],[https://github.com/rurban/safeclib/issues],[safeclib],[http://github.com/rurban/safeclib/])
AC_INIT([Safe C Library],
[m4_esyscmd(build-aux/version-gen.sh .tarball-version)],
[https://github.com/rurban/safeclib/issues],
[safeclib],
[http://github.com/rurban/safeclib/])

# Configure the configure script
# ===============================================
Expand Down Expand Up @@ -93,11 +97,6 @@ dnl enable_static=no
dnl ;;
dnl esac

AC_MSG_CHECKING([package version])
AC_MSG_RESULT($PACKAGE_VERSION)
AC_MSG_CHECKING([so version-info])
AC_MSG_RESULT($SAFECLIB_SO_VERSION)

ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)

Expand Down Expand Up @@ -1070,6 +1069,11 @@ AC_SUBST([TARBALL_VERSION_FILE])
AC_SUBST([SAFEC_SO_VERSION], [3:7:0])
AC_SUBST([SAFEC_API_VERSION], [3.7.0])

AC_MSG_CHECKING([package version])
AC_MSG_RESULT($PACKAGE_VERSION)
AC_MSG_CHECKING([so version-info])
AC_MSG_RESULT($SAFEC_SO_VERSION)

# Automake variables, these variables get automagically included at the top
# of all automake generated make files. This is why you don't see them
# referenced in Makefile.am files.
Expand Down

0 comments on commit 5ba4416

Please sign in to comment.