Skip to content
Newer
Older
100755 30 lines (23 sloc) 821 Bytes
c4c5740 @novas0x2a add shebang line for autogen
novas0x2a authored
1 #!/bin/sh
2
d76428c Port some fixes from VW
Zack Moratto authored
3 # Make an ASCII-comparible copy of a version number by zero-padding it
4 # 1.20.3.4 becomes 01200304
5 # It removes letters
6 ugly_version() {
7 echo $1 | tr . ' ' | tr -d -c '[0-9 ]' | xargs -n1 printf "%03i"
8 }
9
10 am_version=$(automake --version | head -n1 | cut -d ' ' -f 4)
11
cd5b880 @novas0x2a sync autogen between vw and asp
novas0x2a authored
12 # It's actually fixed in 1.9.5b, but my version comparison strips the b
13 am_working=$(ugly_version "1.9.6")
d76428c Port some fixes from VW
Zack Moratto authored
14 am_v2=$(ugly_version "$am_version")
15
cd5b880 @novas0x2a sync autogen between vw and asp
novas0x2a authored
16 if test "$am_v2" \< "$am_working" ; then
d76428c Port some fixes from VW
Zack Moratto authored
17 topdir="$(cd `dirname $0` && pwd)"
18
19 echo "WARNING: automake < 1.9.5b doesn't know how to handle relative"
20 echo "m4_include paths. Working around it."
21 echo
22 set -x
23 mkdir -p "$topdir/m4/m4"
24 ln -sf $topdir/m4/fixups.m4 $topdir/m4/m4/fixups.m4
25 set +x
26 echo
27 fi
28
9ae12ae @novas0x2a make stereo's build much like vw's
novas0x2a authored
29 autoreconf --force --verbose --install -I m4 -I thirdparty/m4
Something went wrong with that request. Please try again.