Ignore grep unit test
[product/upstream/grep.git] / autogen.sh
1 #! /bin/sh
2
3 chmod +x tests/*.sh   # fix a bug in CVS
4
5 # Generate configure.ac with ALL_LINGUAS matching the languages
6 # we have...
7 ALL_LINGUAS=""
8 for i in po/*.po; do
9         ALL_LINGUAS="$ALL_LINGUAS `basename $i .po`"
10 done
11 # Eliminate leading whitespace
12 ALL_LINGUAS="`echo $ALL_LINGUAS |cut -b1-`"
13 sed -e "s,@ALL_LINGUAS@,$ALL_LINGUAS," configure.ac.in >configure.ac
14
15 # Let auto* do its work
16 if \
17 aclocal -I m4 &&
18 autoheader &&
19 automake -a &&
20 autoconf
21 then
22         echo "Next, run ./configure && make && make check"
23 else
24         echo
25         echo "An error occured."
26         exit 1
27 fi