Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/resources/MakeMakefile @ 7895

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