]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add a configure.ac file also in the gettext-tools/examples/ subdirectory.
authorBruno Haible <bruno@clisp.org>
Fri, 30 Jun 2006 14:39:56 +0000 (14:39 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:28 +0000 (12:13 +0200)
ChangeLog
autogen.sh
gettext-tools/ChangeLog
gettext-tools/configure.ac
gettext-tools/examples/ChangeLog
gettext-tools/examples/Makefile.am
gettext-tools/examples/configure.ac [new file with mode: 0644]
gettext-tools/examples/po/Makefile.am

index 47b8ec85d15c3ae7a9293c781f8a724fd2098c00..4426e3c219f07a15a1e7690aab08a348164ec754 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-29  Bruno Haible  <bruno@clisp.org>
+
+       * autogen.sh: Recurse also into the gettext-tools/examples directory
+       and update the PO files there.
+
 2006-06-27  Bruno Haible  <bruno@clisp.org>
 
        * PACKAGING: Don't mention isc-posix.m4.
index 4c17b6ece3b63cbd7e00acd9fac4f14863bc41f8..75eed57700c9a6ae76f23ab8143348f2d2539395 100755 (executable)
@@ -51,7 +51,13 @@ cp -p gettext-runtime/ABOUT-NLS gettext-tools/ABOUT-NLS
  autoconf
  autoheader && touch config.h.in
  automake
- (cd examples/po && make update-po)
+)
+
+(cd gettext-tools/examples
+ aclocal -I ../../gettext-runtime/m4 -I ../../m4
+ autoconf
+ automake
+ ./configure && (cd po && make update-po) && make distclean
 )
 
 cp -p autoconf-lib-link/config.rpath build-aux/config.rpath
index aab72f87a094e91fdba10deeca4366d4fdcf3ec8..cbfa63028f27cbb4e22d4cacefc4dbb4beebba2f 100644 (file)
@@ -1,3 +1,7 @@
+2006-06-29  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: Remove AC_CONFIG_FILES for files in examples subdir.
+
 2006-06-27  Bruno Haible  <bruno@clisp.org>
 
        * configure.ac: Remove AC_ISC_POSIX invocation.
index cf85260cd33f4da7db0c1fbc18786f0ffb802a45..cd5759e558cbbeb713de31ca6c12ca22e954eed0 100644 (file)
@@ -385,9 +385,4 @@ AC_CONFIG_FILES([m4/Makefile])
 AC_CONFIG_FILES([tests/Makefile],
                 [FIX_MAKEFILE_COMPILE])
 
-AC_CONFIG_FILES([examples/Makefile],
-                [FIX_MAKEFILE_DISTRIB])
-AC_CONFIG_FILES([examples/installpaths])
-AC_CONFIG_FILES([examples/po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
-
 AC_OUTPUT
index 83f2dae098514ef86bfc83fa58970232cc5712f8..3f29a805da326dedf57b30293ac5345aa699acdc 100644 (file)
@@ -1,3 +1,9 @@
+2006-06-29  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: New file.
+       * Makefile.am (AUTOMAKE_OPTIONS): Drop gnits, use foreign instead.
+       * po/Makefile.am (POTFILES): Remove examples/ prefix.
+
 2006-06-27  Bruno Haible  <bruno@clisp.org>
 
        * hello-c/{autoclean.sh,m4/Makefile.am}: Remove isc-posix.m4.
index d5bc3103752714b5c34a9072eaa5c2ae4c0ff133..f2fa67afc57de832e1ec139d0902910abbc585dd 100644 (file)
@@ -17,7 +17,7 @@
 
 ## Process this file with automake to produce Makefile.in.
 
-AUTOMAKE_OPTIONS = 1.2 gnits
+AUTOMAKE_OPTIONS = 1.2 foreign
 SUBDIRS = po
 EXTRA_DIST =
 
diff --git a/gettext-tools/examples/configure.ac b/gettext-tools/examples/configure.ac
new file mode 100644 (file)
index 0000000..112f514
--- /dev/null
@@ -0,0 +1,40 @@
+dnl Configuration for the gettext-tools/examples directory of GNU gettext
+dnl Copyright (C) 2006 Free Software Foundation, Inc.
+dnl
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; either version 2, or (at your option)
+dnl any later version.
+dnl
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software Foundation,
+dnl Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+dnl Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.57)
+AC_INIT
+AC_CONFIG_SRCDIR(installpaths.in)
+AC_CONFIG_AUX_DIR(../../build-aux)
+. $srcdir/../../version.sh
+AM_INIT_AUTOMAKE(gettext-examples, $VERSION_NUMBER)
+
+dnl Installation directories.
+test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
+
+AM_PO_SUBDIRS
+
+aclocaldir='${datadir}/aclocal'
+AC_SUBST(aclocaldir)
+
+AC_CONFIG_FILES([Makefile],
+                [FIX_MAKEFILE_DISTRIB])
+AC_CONFIG_FILES([installpaths])
+AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
+
+AC_OUTPUT
index d43b217aca581cb08b6e87e4dd1484a774f4b2f3..38505c5c8e5b16721ebcbdba68841dde6dfbc171 100644 (file)
@@ -21,41 +21,41 @@ AUTOMAKE_OPTIONS = 1.5 gnits
 
 # List of files which contain translatable strings.
 POTFILES = \
-  examples/hello-c/hello.c \
-  examples/hello-c-gnome/hello.c \
-  examples/hello-c++/hello.cc \
-  examples/hello-c++-qt/hello.cc \
-  examples/hello-c++-kde/hello.cc \
-  examples/hello-c++-kde/hellowindow.h \
-  examples/hello-c++-kde/hellowindow.cc \
-  examples/hello-c++-gnome/hello.cc \
-  examples/hello-c++-wxwidgets/hello.cc \
-  examples/hello-objc/hello.m \
-  examples/hello-objc-gnustep/main.m \
-  examples/hello-objc-gnustep/AppController.h \
-  examples/hello-objc-gnustep/AppController.m \
-  examples/hello-objc-gnustep/Hello.h \
-  examples/hello-objc-gnustep/Hello.m \
-  examples/hello-objc-gnome/hello.m \
-  examples/hello-sh/hello.sh \
-  examples/hello-python/hello.py.in \
-  examples/hello-clisp/hello.lisp.in \
-  examples/hello-librep/hello.jl.in \
-  examples/hello-guile/hello.scm \
-  examples/hello-smalltalk/hello.st.in \
-  examples/hello-java/Hello.java \
-  examples/hello-java-awt/Hello.java \
-  examples/hello-java-swing/Hello.java \
-  examples/hello-csharp/hello.cs \
-  examples/hello-csharp-forms/hello.cs \
-  examples/hello-gawk/hello.awk \
-  examples/hello-pascal/hello.pas \
-  examples/hello-ycp/hello.ycp \
-  examples/hello-tcl/hello.tcl \
-  examples/hello-tcl-tk/hello.tcl \
-  examples/hello-perl/hello-1.pl.in \
-  examples/hello-perl/hello-2.pl.in \
-  examples/hello-php/hello.php
+  hello-c/hello.c \
+  hello-c-gnome/hello.c \
+  hello-c++/hello.cc \
+  hello-c++-qt/hello.cc \
+  hello-c++-kde/hello.cc \
+  hello-c++-kde/hellowindow.h \
+  hello-c++-kde/hellowindow.cc \
+  hello-c++-gnome/hello.cc \
+  hello-c++-wxwidgets/hello.cc \
+  hello-objc/hello.m \
+  hello-objc-gnustep/main.m \
+  hello-objc-gnustep/AppController.h \
+  hello-objc-gnustep/AppController.m \
+  hello-objc-gnustep/Hello.h \
+  hello-objc-gnustep/Hello.m \
+  hello-objc-gnome/hello.m \
+  hello-sh/hello.sh \
+  hello-python/hello.py.in \
+  hello-clisp/hello.lisp.in \
+  hello-librep/hello.jl.in \
+  hello-guile/hello.scm \
+  hello-smalltalk/hello.st.in \
+  hello-java/Hello.java \
+  hello-java-awt/Hello.java \
+  hello-java-swing/Hello.java \
+  hello-csharp/hello.cs \
+  hello-csharp-forms/hello.cs \
+  hello-gawk/hello.awk \
+  hello-pascal/hello.pas \
+  hello-ycp/hello.ycp \
+  hello-tcl/hello.tcl \
+  hello-tcl-tk/hello.tcl \
+  hello-perl/hello-1.pl.in \
+  hello-perl/hello-2.pl.in \
+  hello-php/hello.php
 
 # List of small POT files.
 SMALLPOTS = \