+2001-12-01 Bruno Haible <bruno@clisp.org>
+
+ * Rules-quot (.insert-header.po-update-en): Set the GETTEXTLIBDIR
+ environment variable, so that msginit finds its project-id script.
+
2001-12-03 Bruno Haible <bruno@clisp.org>
* ko.po: Update from Changwoo Ryu <cwryu@debian.org>.
.insert-header.po-update-en:
@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
- if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; fi; \
+ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=$(top_srcdir)/src; export GETTEXTLIBDIR; fi; \
tmpdir=`pwd`; \
echo "$$lang:"; \
ll=`echo $$lang | sed -e 's/@.*//'`; \
+2001-12-01 Bruno Haible <bruno@clisp.org>
+
+ * msginit.c (project_id): Make it possible to specify the location
+ of the project-id script through an environment variable.
+ (project_id_version): Likewise.
+
2001-12-03 Tommy Johansson <tommy.johansson@kanalen.org>
* x-java.l (tailcmp): New function.
static const char *
project_id ()
{
- char *prog = concatenated_pathname (LIBDIR, "gettext/project-id", NULL);
+ char *gettextlibdir;
+ char *prog;
char *argv[3];
pid_t child;
int fd[1];
size_t linelen;
int exitstatus;
+ gettextlibdir = getenv ("GETTEXTLIBDIR");
+ if (gettextlibdir == NULL || gettextlibdir[0] == '\0')
+ gettextlibdir = concatenated_pathname (LIBDIR, "gettext", NULL);
+
+ prog = concatenated_pathname (gettextlibdir, "project-id", NULL);
+
/* Call the project-id shell script. */
argv[0] = "/bin/sh";
argv[1] = prog;
static const char *
project_id_version ()
{
- char *prog = concatenated_pathname (LIBDIR, "gettext/project-id", NULL);
+ char *gettextlibdir;
+ char *prog;
char *argv[4];
pid_t child;
int fd[1];
size_t linelen;
int exitstatus;
+ gettextlibdir = getenv ("GETTEXTLIBDIR");
+ if (gettextlibdir == NULL || gettextlibdir[0] == '\0')
+ gettextlibdir = concatenated_pathname (LIBDIR, "gettext", NULL);
+
+ prog = concatenated_pathname (gettextlibdir, "project-id", NULL);
+
/* Call the project-id shell script. */
argv[0] = "/bin/sh";
argv[1] = prog;