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