|
|
|
@ -5,7 +5,7 @@ |
|
|
|
|
|
|
|
|
|
# define least version number from subversion's revision number: |
|
|
|
|
# it is taken modulo 256 due to a bug on Apple's MacOSX |
|
|
|
|
m4_define(x_least, m4_esyscmd_s( |
|
|
|
|
m4_define(x_least, m4_esyscmd([ |
|
|
|
|
SVN_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" |
|
|
|
|
for path in . .. ../..; do |
|
|
|
|
if svn info $path 2>&1 > /dev/null; then |
|
|
|
@ -16,11 +16,11 @@ m4_define(x_least, m4_esyscmd_s( |
|
|
|
|
done |
|
|
|
|
# Mac does not support LEAST > 255 |
|
|
|
|
echo $ECHO_N $(($SVN_REVISION%256)) |
|
|
|
|
)) |
|
|
|
|
])) |
|
|
|
|
# define version number from subversion's revision number: |
|
|
|
|
# it is taken modulo 256 due to a bug on Apple's MacOSX |
|
|
|
|
# add to x_minor if revision number is > 256 |
|
|
|
|
m4_define(x_minor_fixed, m4_esyscmd_s( |
|
|
|
|
m4_define(x_minor_fixed, m4_esyscmd([ |
|
|
|
|
SVN_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" |
|
|
|
|
for path in . .. ../..; do |
|
|
|
|
if svn info $path 2>&1 > /dev/null; then |
|
|
|
@ -31,17 +31,17 @@ m4_define(x_minor_fixed, m4_esyscmd_s( |
|
|
|
|
done |
|
|
|
|
# Mac does not support LEAST > 255 |
|
|
|
|
echo $ECHO_N $((x_minor+$SVN_REVISION/256)) |
|
|
|
|
)) |
|
|
|
|
])) |
|
|
|
|
# setup version number |
|
|
|
|
m4_define(x_version, m4_esyscmd_s( |
|
|
|
|
m4_define(x_version, m4_esyscmd([ |
|
|
|
|
echo $ECHO_N x_major.x_minor_fixed.x_least |
|
|
|
|
)) |
|
|
|
|
])) |
|
|
|
|
|
|
|
|
|
## bugreport mail address is taken from <user@host> in first line of AUTHORS |
|
|
|
|
m4_define(x_bugreport, m4_esyscmd_s( |
|
|
|
|
m4_define(x_bugreport, m4_esyscmd([ |
|
|
|
|
head -1 AUTHORS | \ |
|
|
|
|
sed -n 's,.*<\([-_.a-z0-9A-Z]*@[-_.a-z0-9A-Z]*\)>.*,\1,gp' |
|
|
|
|
)) |
|
|
|
|
])) |
|
|
|
|
|
|
|
|
|
m4_include(ax_check_qt.m4) |
|
|
|
|
|
|
|
|
|