]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
examples: hello-pascal: Update.
authorBruno Haible <bruno@clisp.org>
Tue, 16 Oct 2018 01:14:41 +0000 (03:14 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 17 Oct 2018 17:02:42 +0000 (19:02 +0200)
* gettext-tools/examples/hello-pascal/configure.ac (PPC): Test for ppcx64 if
ppc386 is not found.
* gettext-tools/examples/hello-pascal/hello.rst: Remove file.
* gettext-tools/examples/hello-pascal/Makefile.am: hello.rsj replaces hello.rst.
(SUBDIRS): Proceed in current directory before recursing into po/.
* gettext-tools/examples/hello-pascal/po/Makefile.am (POTFILES): hello.rsj
replaces hello.rst.
* gettext-tools/examples/hello-pascal/autoclean.sh: Remove hello.rsj.

gettext-tools/examples/hello-pascal/Makefile.am
gettext-tools/examples/hello-pascal/autoclean.sh
gettext-tools/examples/hello-pascal/configure.ac
gettext-tools/examples/hello-pascal/hello.rst [deleted file]
gettext-tools/examples/hello-pascal/po/Makefile.am

index 41b73c678db58675d05bdd0c9ce0811f20cbd72e..10547bb51660bcf9f45e9feb4092d0a0519af809 100644 (file)
@@ -8,7 +8,7 @@ AUTOMAKE_OPTIONS = foreign
 ACLOCAL_AMFLAGS = -I m4
 
 # The list of subdirectories containing Makefiles.
-SUBDIRS = m4 po
+SUBDIRS = m4 po
 
 # The list of programs that are built.
 bin_PASCALPROGRAMS = hello
@@ -24,7 +24,7 @@ EXTRA_DIST = autogen.sh autoclean.sh
 all-local: hello$(EXEEXT)
 
 # How to build the 'hello' program.
-hello$(EXEEXT) hello.rst: $(hello_SOURCES)
+hello$(EXEEXT) hello.rsj: $(hello_SOURCES)
        LOCALEDIR='@localedir@' $(PPC) $(hello_SOURCES)
 
 install-exec-local: all-local
@@ -37,9 +37,9 @@ installdirs-local:
 uninstall-local:
        rm -f $(DESTDIR)$(bindir)/hello$(EXEEXT)
 
-# Distribute the RST file because it's needed to generate POT files and can
+# Distribute the RSJ file because it's needed to generate POT files and can
 # only be rebuilt on those platforms to which the Pascal compiler is ported.
-EXTRA_DIST += hello.rst
+EXTRA_DIST += hello.rsj
 
 # The list of auxiliary files generated during the compilation.
 CLEANFILES = hello.o hello$(EXEEXT)
index 9367df26cfb7e29429068da079306a00962a6241..94c0091118de27dd045d5ea6f462697f24bbccc7 100755 (executable)
@@ -25,6 +25,7 @@ rm -f m4/Makefile.in
 rm -f po/Makefile.in
 rm -f install-sh
 rm -f missing
+rm -f hello.rsj
 rm -f po/*.pot
 rm -f po/stamp-po
 rm -f po/*.gmo
index 76920b877533b3df3d2f6eea2450a7138923078a..37fd52216010046430dcc7f9adb2a869485e5ea0 100644 (file)
@@ -8,9 +8,9 @@ AC_CONFIG_SRCDIR(hello.pas)
 AM_INIT_AUTOMAKE(hello-pascal, 0)
 
 dnl Check for availability of the Free Pascal Compiler.
-AC_PATH_PROG(PPC, ppc386)
+AC_PATH_PROGS(PPC, ppc386 ppcx64)
 if test -z "$PPC"; then
-  echo "*** Essential program ppc386 not found" 1>&2
+  echo "*** Essential program ppc386 or ppcx64 not found" 1>&2
   exit 1
 fi
 AC_SUBST(PPC)
diff --git a/gettext-tools/examples/hello-pascal/hello.rst b/gettext-tools/examples/hello-pascal/hello.rst
deleted file mode 100644 (file)
index 9f04be6..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# hash value = 153469889
-hello.hello_world='Hello, world!'
-
-
-# hash value = 1323310
-hello.running_as='This program is running as process number %d.'
-
index 2419479b3bc5fa57ded9668b58fa786b774a205b..6739e057ece994d3a6e44623c11d879eb2d673ba 100644 (file)
@@ -5,7 +5,7 @@
 
 # List of files which contain translatable strings.
 POTFILES = \
-  hello.rst
+  hello.rsj
 
 # Usually the message domain is the same as the package name.
 DOMAIN = $(PACKAGE)