summaryrefslogtreecommitdiff
path: root/doc/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-02-27 17:59:39 +0100
committerLudovic Courtès <ludo@gnu.org>2011-02-27 17:59:39 +0100
commitf5c363dcaeb9ad068725c6c3c6e6b24266241ee4 (patch)
tree618b5b302b4ce8bdbd4ce0deeed49b11505d9e35 /doc/scripts
parente3a820fcc10728fa70b3f7cb1cdb1b7add8678c4 (diff)
downloadgnutls-f5c363dcaeb9ad068725c6c3c6e6b24266241ee4.tar.gz
Avoid hard-coded /usr/bin/perl (trick taken from Gnulib.)
Diffstat (limited to 'doc/scripts')
-rwxr-xr-xdoc/scripts/gdoc4
-rwxr-xr-xdoc/scripts/sort2.pl4
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/scripts/gdoc b/doc/scripts/gdoc
index 13a37bd3b5..e79d3afd72 100755
--- a/doc/scripts/gdoc
+++ b/doc/scripts/gdoc
@@ -1,4 +1,6 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+ & eval 'exec perl -wS "$0" $argv:q'
+ if 0;
## Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
## added -texinfo, -listfunc, -pkg-name
diff --git a/doc/scripts/sort2.pl b/doc/scripts/sort2.pl
index a4c71ef05e..171bab7f9a 100755
--- a/doc/scripts/sort2.pl
+++ b/doc/scripts/sort2.pl
@@ -1,4 +1,6 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+ & eval 'exec perl -wS "$0" $argv:q'
+ if 0;
sub key_of_record {
local($record) = @_;