Last change
on this file since 7952 was
5407,
checked in by bensch, 19 years ago
|
orxonox/trunk: sync state working on Tardis
|
-
Property svn:executable set to
*
|
File size:
1.4 KB
|
Rev | Line | |
---|
[5407] | 1 | #!/bin/sh |
---|
| 2 | # |
---|
| 3 | # Run this script after the first cvs checkout to build |
---|
| 4 | # makefiles and friends |
---|
| 5 | |
---|
| 6 | vcheck (){ |
---|
| 7 | perl <<PERL |
---|
| 8 | @t = split /\./, "$1"; |
---|
| 9 | @v = map { int \$_ } split /\./, (split /\s+/, \`$2\`)[3]; |
---|
| 10 | print "$2 = ", (join ".",@v), " (expected $1)\n"; |
---|
| 11 | \$v = \$t[0]*1000000+\$t[1]*1000+\$t[2] <= \$v[0]*1000000+\$v[1]*1000+\$v[2]; |
---|
| 12 | exit \$v |
---|
| 13 | PERL |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | ERROR=0 |
---|
| 17 | |
---|
| 18 | if vcheck 1.5.14 "libtool --version" |
---|
| 19 | then |
---|
| 20 | echo "get a copy of GNU libtool >= 1.5.14" |
---|
| 21 | ERROR=1 |
---|
| 22 | fi |
---|
| 23 | |
---|
| 24 | if vcheck 1.9.5 "automake --version" |
---|
| 25 | then |
---|
| 26 | if vcheck 1.9.5 "automake-1.9 --version" |
---|
| 27 | then |
---|
| 28 | echo "get a copy of GNU automake >= 1.9.5" |
---|
| 29 | ERROR=1 |
---|
| 30 | else |
---|
| 31 | automake=automake-1.9 |
---|
| 32 | aclocal="aclocal-1.9 --acdir=/usr/share/aclocal-1.9 -I /usr/share/aclocal/" |
---|
| 33 | fi |
---|
| 34 | else |
---|
| 35 | automake="automake" |
---|
| 36 | aclocal="aclocal" |
---|
| 37 | # aclocal="aclocal -I /usr/pack/libtool-1.5.14-to/share/aclocal" |
---|
| 38 | fi |
---|
| 39 | |
---|
| 40 | if vcheck 2.59 "autoconf --version" |
---|
| 41 | then |
---|
| 42 | echo "get a copy of GNU autoconf >= 2.59" |
---|
| 43 | ERROR=1 |
---|
| 44 | fi |
---|
| 45 | |
---|
| 46 | if [ $ERROR -ne 0 ] |
---|
| 47 | then |
---|
| 48 | exit 1 |
---|
| 49 | fi |
---|
| 50 | |
---|
| 51 | # cleanup |
---|
| 52 | set -x |
---|
| 53 | find . -name Makefile | xargs rm -f _UNKNONW_ |
---|
| 54 | find . -name "*.la" | xargs rm -f |
---|
| 55 | find . -name Makefile.in | xargs rm -f _UNKNONW_ |
---|
| 56 | find . -name .libs | xargs rm -r |
---|
| 57 | find . -name .debs | xargs rm -r |
---|
| 58 | |
---|
| 59 | $aclocal |
---|
| 60 | libtoolize --copy --force |
---|
| 61 | autoheader --warnings=all --force |
---|
| 62 | $aclocal |
---|
| 63 | $automake --foreign --add-missing --force-missing --copy --warnings=all |
---|
| 64 | autoconf --warnings=all --force |
---|
| 65 | # one again to make every body happy |
---|
| 66 | autoreconf |
---|
Note: See
TracBrowser
for help on using the repository browser.