5 AUTOMAKE="automake -a -c --foreign"
8 # Generate the Makefiles and configure files
9 if ( aclocal --version ) </dev/null > /dev/null 2>&1; then
10 echo "Building macros."
11 $ACLOCAL ; (cd lib/reLyX; $ACLOCAL )
13 echo "aclocal not found -- aborting"
17 if ( autoheader --version ) </dev/null > /dev/null 2>&1; then
18 echo "Building config header template"
21 echo "autoheader not found -- aborting"
25 if ( $AUTOMAKE --version ) </dev/null > /dev/null 2>&1; then
26 echo "Building Makefile templates"
27 $AUTOMAKE ; (cd lib/reLyX ; $AUTOMAKE )
29 echo "automake not found -- aborting"
33 if ( $AUTOCONF --version ) </dev/null > /dev/null 2>&1; then
34 echo "Building configure"
35 $AUTOCONF ; ( cd lib/reLyX ; $AUTOCONF )
36 echo 'run "./configure ; make"'
38 echo "autoconf not found -- aborting"
42 # Autogenerate lib/configure.m4. We need GNU m4 for that and thus have
43 # to try several ones.
45 for prog in $M4 gm4 gnum4 m4 ; do
46 case `$prog --help < /dev/null 2>&1 | grep traditional` in
47 *traditional*) echo "Building lib/configure"
49 $prog lib/configure.m4 >lib/configure
55 if test $ok = no ; then
56 echo "GNU m4 not found -- aborting"
60 echo "Creating POTFILES.in..."
63 # This file is automatically generated by autogen.sh. This command was
64 # used to extract the files from the sources:
66 # grep -E "_\(\".*\"\)" \`find src -name \*.[hHC]\` | \\
67 # awk 'BEGIN {FS= ":"} {print $1}' | sort | uniq
69 # This must be done when standing in lyx/
71 # This is all the files that contains internationalization strings.
75 grep -E "_\(\".*\"\)" `find src -name \*.[hHC]` | \
76 awk 'BEGIN {FS= ":"} {print $1}' | sort -f -d | uniq >> tmppot
77 mv tmppot po/POTFILES.in