3 # Run this script after the first cvs checkout to build
4 # makefiles and friends
6 PATH="/usr/sepp/bin:$PATH"
11 @t = split /\./, "$1";
12 @v = map { int \$_ } split /\./, (split /\s+/, \`$2\`)[3];
13 print "$2 = ", (join ".",@v), " (expecting $1 or later)\n";
14 \$v = \$t[0]*1000000+\$t[1]*1000+\$t[2] <= \$v[0]*1000000+\$v[1]*1000+\$v[2];
21 if vcheck 1.5.14 "libtool --version"
23 echo "get a copy of GNU libtool >= 1.5.14"
27 if vcheck 1.9.5 "automake --version"
29 if vcheck 1.9.5 "automake-1.9 --version"
31 echo "get a copy of GNU automake >= 1.9.5"
36 for d in /usr/pack/automake-1.9.5-to/share/aclocal-1.9 /usr/share/aclocal-1.9 /usr/share/aclocal /usr/pack/rrdtool-1.3svn-to/share/aclocal /usr/pack/intltool-0.37.0-to/share/aclocal ; do
37 [ -d $d ] && aclocal="$aclocal -I $d"
43 # aclocal="aclocal -I /usr/pack/libtool-1.5.14-to/share/aclocal"
46 if vcheck 2.59 "autoconf --version"
48 echo "get a copy of GNU autoconf >= 2.59"
52 if vcheck 0.35.0 "intltoolize --version"
54 echo "get a copy of GNU intltoolize >= 0.35.0"
63 # remove the bits we are going to recreate
65 echo Removing old Makefiles
67 find . -name "Makefile" -or -name "Makefile.in" -print0 | xargs -0 rm
68 echo Cleaning out other leftovers
69 for x in configure install-sh intltool-merge.in rrd_config.h.in \
70 missing intltool-update po/Makefile.in.in config.sub \
71 intltool-extract intltool-extract.in config.guess \
72 depcomp intltool-update.in autom4te.cache \
73 intltool-merge compile; do
74 [ ! -L $x -a -d $x ] && rm -r "$x"
75 [ ! -L $x -a -f $x ] && rm "$x"
78 intltoolize --automake -c -f
80 libtoolize --copy --force
83 $automake --foreign --add-missing --force-missing --copy
86 # vim: set syntax=sh :