]> git.lyx.org Git - lyx.git/blobdiff - autogen.sh
the export patch from Dekel
[lyx.git] / autogen.sh
index 26e1ce64cd01b2b6f9968c6b1e43d8a3f90d4d55..ea2358ed909b59a4d6981a721b851a828436b4d9 100755 (executable)
@@ -22,17 +22,30 @@ fi
 
 # Generate acinclude.m4
 echo -n "Generate acinclude.m4... "
-rm -rf acinclude.m4
+rm -f acinclude.m4 sigc++/acinclude.m4
 touch acinclude.m4
-for fil in config/lyxinclude.m4 config/libtool.m4 config/gettext.m4 config/lcmessage.m4 config/progtest.m4 ; do
+for fil in config/lyxinclude.m4 config/libtool.m4 config/gettext.m4 config/lcmessage.m4 config/progtest.m4 config/sigc++.m4 config/kde.m4 config/gtk--.m4 config/gnome--.m4 config/gnome.m4 config/pspell.m4; do
     cat $fil >> acinclude.m4
 done
+touch sigc++/acinclude.m4
+for fil in config/libtool.m4 ; do
+    cat $fil >> sigc++/acinclude.m4
+done
+echo "done."
+
+# Generate the ext_l10n.h
+echo -n "Generate the ext_l10n file..."
+rm -f src/ext_l10n.h
+# first the ui file(s)
+grep -i -E "submenu|item|optitem" < lib/ui/default.ui | cut -d '"' -f 2 | awk '{printf "_(\"%s\");\n", $0}' > src/ext_l10n.h
+# then the layout files
+cat lib/layouts/*.layout lib/layouts/*.inc | grep -i -E "[ ]*style .+$" | cut -d ' ' -f 2 | sort | uniq | awk '{printf "_(\"%s\");\n", $0}' >> src/ext_l10n.h
 echo "done."
 
 # Generate the Makefiles and configure files
 if ( aclocal --version ) </dev/null > /dev/null 2>&1; then
        echo -n "Building macros... "
-       $ACLOCAL ; (cd lib/reLyX; $ACLOCAL )
+       $ACLOCAL ; ( cd lib/reLyX; $ACLOCAL ) ; ( cd sigc++; $ACLOCAL ) 
        echo "done."
 else
        echo "aclocal not found -- aborting"
@@ -41,7 +54,7 @@ fi
 
 if ( autoheader --version ) </dev/null > /dev/null 2>&1; then
        echo -n "Building config header template... "
-       $AUTOHEADER
+       $AUTOHEADER ; ( cd sigc++; $AUTOHEADER )
        echo "done."
 else
        echo "autoheader not found -- aborting"
@@ -50,7 +63,7 @@ fi
 
 if ( $AUTOMAKE --version ) </dev/null > /dev/null 2>&1; then
        echo -n "Building Makefile templates... "
-       $AUTOMAKE ; (cd lib/reLyX ; $AUTOMAKE )
+       $AUTOMAKE ; ( cd lib/reLyX ; $AUTOMAKE ) ; ( cd sigc++; $AUTOMAKE )
        echo "done."
 else
        echo "automake not found -- aborting"
@@ -59,7 +72,7 @@ fi
 
 if ( $AUTOCONF --version ) </dev/null > /dev/null 2>&1; then
        echo -n "Building configure... "
-       $AUTOCONF ; ( cd lib/reLyX ; $AUTOCONF )
+       $AUTOCONF ; ( cd lib/reLyX ; $AUTOCONF ) ; ( cd sigc++; $AUTOCONF )
        echo "done."
 else
        echo "autoconf not found -- aborting"
@@ -93,7 +106,7 @@ cat <<EOF > tmppot
 
 EOF
 
-grep -E "_\(\".*\"\)" `find src -name \*.[hHC]` | \
+grep -l -E "_\(\".*\"\)" `find src -name \*.[hHC]` | \
 awk 'BEGIN {FS= ":"} {print $1}' | sort -f -d | uniq >> tmppot
 mv tmppot po/POTFILES.in
 echo "done"