|
|
@ -7,7 +7,7 @@ |
|
|
|
m4_define([mrw_esyscmd_s], [m4_normalize(m4_esyscmd([$1]))]) |
|
|
|
m4_define([mrw_esyscmd_s], [m4_normalize(m4_esyscmd([$1]))]) |
|
|
|
|
|
|
|
|
|
|
|
# define least version number from subversion's revision number: |
|
|
|
# define least version number from subversion's revision number: |
|
|
|
# it is taken modulo 256 due to a bug on Apple's SX |
|
|
|
# it is taken modulo 256 due to a bug on Apple's MaxOSX |
|
|
|
m4_define(x_least, m4_ifdef([x_least_fix], [x_least_fix], |
|
|
|
m4_define(x_least, m4_ifdef([x_least_fix], [x_least_fix], |
|
|
|
m4_ifdef([x_least_diff], |
|
|
|
m4_ifdef([x_least_diff], |
|
|
|
mrw_esyscmd_s([ |
|
|
|
mrw_esyscmd_s([ |
|
|
@ -36,10 +36,7 @@ m4_define(x_least, m4_ifdef([x_least_fix], [x_least_fix], |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
done |
|
|
|
# Mac does not support LEAST > 255 |
|
|
|
# Mac does not support LEAST > 255 |
|
|
|
echo $ECHO_N $(($VCS_REVISION%256)) |
|
|
|
echo $ECHO_N $(($VCS_REVISION%256))])))) |
|
|
|
]) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# define version number from subversion's revision number: |
|
|
|
# define version number from subversion's revision number: |
|
|
|
# it is taken modulo 256 due to a bug on Apple's MacOSX |
|
|
|
# it is taken modulo 256 due to a bug on Apple's MacOSX |
|
|
@ -57,8 +54,8 @@ m4_define(x_minor_diff, m4_ifdef([x_least_fix], 0, mrw_esyscmd_s([ |
|
|
|
fi; |
|
|
|
fi; |
|
|
|
done |
|
|
|
done |
|
|
|
# Mac does not support LEAST > 255 |
|
|
|
# Mac does not support LEAST > 255 |
|
|
|
echo $ECHO_N $(($VCS_REVISION/256)) |
|
|
|
echo $ECHO_N $(($VCS_REVISION/256))]))) |
|
|
|
]))) |
|
|
|
|
|
|
|
# setup version number |
|
|
|
# setup version number |
|
|
|
m4_define(x_version, [x_major.m4_ifdef([x_least_diff], x_minor, m4_eval(x_minor+x_minor_diff)).m4_eval(m4_ifdef([x_least_diff], [x_least-x_least_diff], [x_least]))]) |
|
|
|
m4_define(x_version, [x_major.m4_ifdef([x_least_diff], x_minor, m4_eval(x_minor+x_minor_diff)).m4_eval(m4_ifdef([x_least_diff], [x_least-x_least_diff], [x_least]))]) |
|
|
|
|
|
|
|
|
|
|
@ -196,15 +193,26 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [ |
|
|
|
COPYING=$(<COPYING) |
|
|
|
COPYING=$(<COPYING) |
|
|
|
AX_SUBST(COPYING) |
|
|
|
AX_SUBST(COPYING) |
|
|
|
_AM_SUBST_NOTMAKE([COPYING]) |
|
|
|
_AM_SUBST_NOTMAKE([COPYING]) |
|
|
|
|
|
|
|
CHANGELOG=$(<ChangeLog) |
|
|
|
|
|
|
|
AX_SUBST(CHANGELOG) |
|
|
|
|
|
|
|
_AM_SUBST_NOTMAKE([CHANGELOG]) |
|
|
|
|
|
|
|
DEB_CHANGELOG=$(sed '/^[[^\t]]/{h;N;d};/^\t\* /{s,,,;H;g;s,^,\t* ,;s,\n\([[^ ]]*\) *, \1\n\t ,}' ChangeLog) |
|
|
|
|
|
|
|
AX_SUBST(DEB_CHANGELOG) |
|
|
|
|
|
|
|
_AM_SUBST_NOTMAKE([DEB_CHANGELOG]) |
|
|
|
AUTHOR=$(head -1 AUTHORS) |
|
|
|
AUTHOR=$(head -1 AUTHORS) |
|
|
|
AUTHOR_NAME=$(echo $AUTHOR | sed 's, *[[<(]].*$,,') |
|
|
|
AUTHOR_NAME=$(echo $AUTHOR | sed 's, *[[<(]].*$,,') |
|
|
|
AUTHOR_URL=$(echo $AUTHOR | sed 's,.*(\(http[[^)]]*\)).*,\1,') |
|
|
|
AUTHOR_URL=$(echo $AUTHOR | sed 's,.*(\(http[[^)]]*\)).*,\1,') |
|
|
|
AUTHOR_MAIL=$(echo $AUTHOR | sed 's,.*<\(.*@.*\)>.*,\1,') |
|
|
|
AUTHOR_MAIL=$(echo $AUTHOR | sed 's,.*<\(.*@.*\)>.*,\1,') |
|
|
|
|
|
|
|
PACKAGER=$(gpg -K 2>/dev/null | sed -n 's,uid *\(\[[ultimate\]] *\)\?,,p' | head -1) |
|
|
|
|
|
|
|
if -z "${PACKAGER}"; then |
|
|
|
|
|
|
|
PACKAGER="$AUTHOR" |
|
|
|
|
|
|
|
fi |
|
|
|
AX_SUBST(AUTHOR) |
|
|
|
AX_SUBST(AUTHOR) |
|
|
|
_AM_SUBST_NOTMAKE([AUTHOR]) |
|
|
|
_AM_SUBST_NOTMAKE([AUTHOR]) |
|
|
|
AX_SUBST(AUTHOR_NAME) |
|
|
|
AX_SUBST(AUTHOR_NAME) |
|
|
|
AX_SUBST(AUTHOR_URL) |
|
|
|
AX_SUBST(AUTHOR_URL) |
|
|
|
AX_SUBST(AUTHOR_MAIL) |
|
|
|
AX_SUBST(AUTHOR_MAIL) |
|
|
|
|
|
|
|
AX_SUBST(PACKAGER) |
|
|
|
PROJECT_URL="${PROJECT_URL:-${AUTHOR_URL}/projects/${PACKAGE_NAME}}" |
|
|
|
PROJECT_URL="${PROJECT_URL:-${AUTHOR_URL}/projects/${PACKAGE_NAME}}" |
|
|
|
SOURCE_DOWNLOAD="${SOURCE_DOWNLOAD:-${AUTHOR_URL}/downloads/${PACKAGE_NAME}}" |
|
|
|
SOURCE_DOWNLOAD="${SOURCE_DOWNLOAD:-${AUTHOR_URL}/downloads/${PACKAGE_NAME}}" |
|
|
|
AX_SUBST(PROJECT_URL) |
|
|
|
AX_SUBST(PROJECT_URL) |
|
|
|