some build environment updates

This commit is contained in:
Marc Wäckerlin
2015-05-05 20:31:56 +00:00
parent 8afec7dd28
commit 124b097675
8 changed files with 98 additions and 46 deletions

View File

@@ -5,17 +5,17 @@
# 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(
LEAST="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout"
m4_define(x_version, m4_esyscmd_s(
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
# Mac does not support LEAST > 255
LEAST=$(($(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')%256))
SVN_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')
(cd $path && svn2cl)
break;
fi
done
echo $ECHO_N $LEAST
# Mac does not support LEAST > 255
echo $ECHO_N x_major.$((x_minor+$SVN_REVISION/256)).$(($SVN_REVISION%256))
))
## bugreport mail address is taken from <user@host> in first line of AUTHORS