|
|
@ -11,10 +11,13 @@ m4_define(x_minor, 0) |
|
|
|
PACKAGENAME=x_packagename |
|
|
|
PACKAGENAME=x_packagename |
|
|
|
MAJOR=x_major |
|
|
|
MAJOR=x_major |
|
|
|
MINOR=x_minor |
|
|
|
MINOR=x_minor |
|
|
|
|
|
|
|
LEAST="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" |
|
|
|
LEAST='$Revision$' |
|
|
|
for path in . .. ../..; do |
|
|
|
LEAST=${LEAST#* } |
|
|
|
if svn info $path 2>&1 > /dev/null; then |
|
|
|
LEAST=${LEAST% *} |
|
|
|
LEAST=$(LANG= svn info $path | sed -n 's/Revision: //p') |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org]) |
|
|
|
AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org]) |
|
|
|
|
|
|
|
|
|
|
@ -30,7 +33,7 @@ AC_SUBST(LEAST) |
|
|
|
|
|
|
|
|
|
|
|
# libtool versioning |
|
|
|
# libtool versioning |
|
|
|
LIB_MAJOR=m4_eval(x_major+x_minor) |
|
|
|
LIB_MAJOR=m4_eval(x_major+x_minor) |
|
|
|
LIB_MINOR=LEAST |
|
|
|
LIB_MINOR=$LEAST |
|
|
|
LIB_LEAST=x_minor |
|
|
|
LIB_LEAST=x_minor |
|
|
|
LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}" |
|
|
|
LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}" |
|
|
|
AC_SUBST(LIB_VERSION) |
|
|
|
AC_SUBST(LIB_VERSION) |
|
|
|