+2005-02-10 Bruno Haible <bruno@clisp.org>
+
+ * configure.ac: Add creation rule for src/gettext.sh.
+
2005-01-06 Bruno Haible <bruno@clisp.org>
* configure.ac: Invoke gl_ERROR instead of gt_FUNC_ERROR_AT_LINE.
AC_CONFIG_FILES([src/Makefile],
[FIX_MAKEFILE_COMPILE])
+AC_CONFIG_FILES([src/gettext.sh], [chmod a+x src/gettext.sh])
AC_CONFIG_FILES([po/Makefile.in])
+2005-02-10 Bruno Haible <bruno@clisp.org>
+
+ * gettext.sh.in: Renamed from gettext.sh. Show help or usage or an
+ error message when invoked as an executable.
+ * Makefile.am (bin_SCRIPTS, DISTCLEANFILES): New variables.
+ (EXTRA_DIST): Remove gettext.sh.
+ (all-local, install-data-local, uninstall-local): Remove rules.
+ * Makefile.msvc (install): Don't install gettext.sh.
+ (uninstall): Don't uninstall gettext.sh.
+ * Makefile.vms (install): Don't install gettext.sh.
+ (uninstall): Don't uninstall gettext.sh.
+ Suggested by Alfred M. Szmidt <ams@kemisten.nu>.
+
2005-01-05 Bruno Haible <bruno@clisp.org>
* gettext.c (main): Update year in --version output.
## Makefile for the gettext-runtime/src subdirectory of GNU gettext
-## Copyright (C) 1995-1998, 2000-2004 Free Software Foundation, Inc.
+## Copyright (C) 1995-1998, 2000-2005 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies
EXTRA_DIST =
+DISTCLEANFILES =
RM = rm -f
envsubst_LDFLAGS = `$(RELOCATABLE_LDFLAGS) $(bindir)`
endif
-# Special rule for installing gettext.sh in $(bindir).
-# automake doesn't handle "bin_DATA = gettext.sh".
-EXTRA_DIST += gettext.sh
-all-local: gettext.sh
-install-data-local: all-local
- $(mkinstalldirs) $(DESTDIR)$(bindir)
- $(INSTALL_DATA) $(srcdir)/gettext.sh $(DESTDIR)$(bindir)/gettext.sh
-uninstall-local: all-local
- $(RM) $(DESTDIR)$(bindir)/gettext.sh
+# For installing gettext.sh in $(bindir).
+bin_SCRIPTS = gettext.sh
+DISTCLEANFILES += gettext.sh
# Support for relocatability.
RELOCATABLE_LIBRARY_PATH = $(libdir)
$(INSTALL_PROGRAM) gettext.exe $(bindir)\gettext.exe
$(INSTALL_PROGRAM) ngettext.exe $(bindir)\ngettext.exe
$(INSTALL_PROGRAM) envsubst.exe $(bindir)\envsubst.exe
- $(INSTALL_DATA) gettext.sh $(bindir)\gettext.sh
installdirs : force
-mkdir $(prefix)
$(RM) $(bindir)\gettext.exe
$(RM) $(bindir)\ngettext.exe
$(RM) $(bindir)\envsubst.exe
- $(RM) $(bindir)\gettext.sh
check : all
$(INSTALL_PROGRAM) gettext.exe $(bindir)]gettext.exe
$(INSTALL_PROGRAM) ngettext.exe $(bindir)]ngettext.exe
$(INSTALL_PROGRAM) envsubst.exe $(bindir)]envsubst.exe
- $(INSTALL_DATA) gettext.sh $(bindir)]gettext.sh
installdirs :
create /directory $(prefix)]
$(RM) $(bindir)]gettext.exe;
$(RM) $(bindir)]ngettext.exe;
$(RM) $(bindir)]envsubst.exe;
- $(RM) $(bindir)]gettext.sh;
check : all
write sys$output "Nothing else to be done for 'check'."