correct verion number; closes #5

master
Marc Wäckerlin 13 years ago
parent 96d7feac96
commit 2096010ce0
  1. 14
      configure.in
  2. 1
      src/makefile.am

@ -22,19 +22,21 @@ DOC_DIR=doc
m4_define(x_packagename, libxml-cxx) m4_define(x_packagename, libxml-cxx)
m4_define(x_major, 1) m4_define(x_major, 1)
m4_define(x_minor, 0) m4_define(x_minor, 1)
PACKAGENAME=x_packagename PACKAGENAME=x_packagename
MAJOR=x_major MAJOR=x_major
MINOR=x_minor MINOR=x_minor
BUILDDATE=$(date "+%d.%m.%Y/%H.%M") BUILDDATE=$(date "+%d.%m.%Y/%H.%M")
LEAST="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" if svn info . 2>&1 > /dev/null; then
for path in . .. ../..; do
if svn info $path 2>&1 > /dev/null; then
LEAST=$(LANG= svn info $path | sed -n 's/Revision: //p') LEAST=$(LANG= svn info $path | sed -n 's/Revision: //p')
break; break;
fi else
done LEAST=[$(pwd | sed -n 's,^.*/'${PACKAGENAME}'-'${MAJOR}'\.'${MINOR}'\.\([0-9]*\).*$,\1,p')]
if test -z "${LEAST}"; then
LEAST="ERROR CANNOT DETERMINE REVISION NUMBER from $(pwd)"
fi
fi
AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org]) AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org])

@ -19,6 +19,7 @@ lib_LTLIBRARIES = libxml-cxx.la
nobase_include_HEADERS = xml-cxx/xml.hxx xml-cxx/any.hxx nobase_include_HEADERS = xml-cxx/xml.hxx xml-cxx/any.hxx
libxml_cxx_la_SOURCES = xml.cxx version.cxx libxml_cxx_la_SOURCES = xml.cxx version.cxx
libxml_cxx_la_LDFLAGS = -version-info ${LIB_VERSION}
DISTCLEANFILES = $(pkgconfig_DATA) DISTCLEANFILES = $(pkgconfig_DATA)
MAINTAINERCLEANFILES = makefile.in MAINTAINERCLEANFILES = makefile.in

Loading…
Cancel
Save