|
|
@ -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]) |
|
|
|
|
|
|
|
|
|
|
|