projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
acf0a63
)
* m4/version.m4: Make version detection work on BSD sed (e.g. Mac OS X)
author
Stefan Ring
<stefan@complang.tuwien.ac.at>
Fri, 17 Feb 2012 18:16:16 +0000
(19:16 +0100)
committer
Stefan Ring
<stefan@complang.tuwien.ac.at>
Fri, 17 Feb 2012 18:16:16 +0000
(19:16 +0100)
m4/version.m4
patch
|
blob
|
history
diff --git
a/m4/version.m4
b/m4/version.m4
index 8b039463767cf6bb4e78d4132e845d10d4cdf3f3..4766ae765633208ab39ebfd875a0327119380340 100644
(file)
--- a/
m4/version.m4
+++ b/
m4/version.m4
@@
-1,6
+1,6
@@
dnl m4/version.m4
dnl
dnl m4/version.m4
dnl
-dnl Copyright (C)
2009
+dnl Copyright (C)
1996-2012
dnl CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
dnl
dnl This file is part of CACAO.
dnl CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
dnl
dnl This file is part of CACAO.
@@
-29,7
+29,7
@@
if test x`echo "$version" | $SED -e 's/[[0-9a-z+]]*//g'` = "x..";
then
major=`echo "$version" | $SED -e 's/\.[[0-9a-z.+]]*$//'`
minor=`echo "$version" | $SED -e 's/^[[0-9]]*\.//' -e 's/\.[[0-9a-z.+]]*$//'`
then
major=`echo "$version" | $SED -e 's/\.[[0-9a-z.+]]*$//'`
minor=`echo "$version" | $SED -e 's/^[[0-9]]*\.//' -e 's/\.[[0-9a-z.+]]*$//'`
- micro=`echo "$version" | $SED -
r -e 's/^[[0-9]]*\.[[0-9]]*\.([[0-9]]*
).*/\1/'`
+ micro=`echo "$version" | $SED -
e 's/^[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\
).*/\1/'`
extra=`echo "$version" | $SED -e 's/^[[0-9]]*\.[[0-9]]*\.[[0-9]]*//'`
else
major=`echo "$version" | $SED -e 's/\.[[0-9a-z.+]]*$//'`
extra=`echo "$version" | $SED -e 's/^[[0-9]]*\.[[0-9]]*\.[[0-9]]*//'`
else
major=`echo "$version" | $SED -e 's/\.[[0-9a-z.+]]*$//'`