summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/Makefile.in.in8
-rw-r--r--po/update.pl.in (renamed from po/update.pl)2
2 files changed, 8 insertions, 2 deletions
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
index 83d8838ac..4daed5420 100644
--- a/po/Makefile.in.in
+++ b/po/Makefile.in.in
@@ -76,10 +76,16 @@ POTFILES = \
CATALOGS = @CATALOGS@
+do_perl_subst = $(SED) -e 's,[@]PERL[@],$(PERL),g'
+
# Makevars gets inserted here. (Don't remove this line!)
.SUFFIXES:
-.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
+.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .pl.in .pl
+
+.pl.in.pl:
+ $(do_perl_subst) < $< > $@
+ chmod +x $@
.po.mo:
@echo "$(MSGFMT) -c -o $@ $<"; \
diff --git a/po/update.pl b/po/update.pl.in
index c7c34b612..7b7af52ef 100644
--- a/po/update.pl
+++ b/po/update.pl.in
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!@PERL@ -w
# GNOME po update utility.
# (C) 2000 The Free Software Foundation