added library versioning code

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@7446 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2013-02-07 01:27:06 +00:00
parent d865a2a91d
commit 275fae5d67
2 changed files with 5 additions and 1 deletions

View File

@ -191,12 +191,14 @@ fi
VERSION_LONG="$ver_major.$ver_minor.$ver_patch.$REVISION_SVN"
SED_FILES="$DISTPATH/configure.ac \
$DISTPATH/phreeqc3-doc/RELEASE.TXT"
$DISTPATH/phreeqc3-doc/RELEASE.TXT \
$DISTPATH/src/Makefile.am"
for vsn_file in $SED_FILES
do
sed \
-e "s/AC_INIT(.*)/AC_INIT([IPhreeqc], [$VERSION-$REVISION], [charlton@usgs.gov])/g" \
-e "s/AM_LDFLAGS=-release.*/AM_LDFLAGS=-release $ver_major.$ver_minor.$ver_patch/g" \
-e "s/@PHREEQC_VER@/$VER/g" \
-e "s/@PHREEQC_DATE@/$RELEASE_DATE/g" \
< "$vsn_file" > "$vsn_file.tmp"

View File

@ -18,6 +18,8 @@ EXTRA_DIST=\
AM_CPPFLAGS=-I$(top_srcdir)/src -I$(top_srcdir)/src/phreeqcpp
AM_LDFLAGS=-release 3.0.0
# libtool libraries to build
lib_LTLIBRARIES=libiphreeqc.la