summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-05-18 07:31:25 +0000
committerNils Gillmann <ng0@n0.is>2018-05-18 07:31:25 +0000
commitc2f27dfe8218545c327ab49d225a49910347c5c6 (patch)
treec91be01693a3909d346967eecc0ce8feb33740d7 /po
parent18e7e14b3ff70614ee807e7d34b5fdf31910f88f (diff)
po: Generate perl bin path
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'po')
-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