build: Don't hard code path to perl in doc/gdoc.
authorSimon Josefsson <simon@josefsson.org>
Sat, 19 Nov 2011 14:30:47 +0000 (15:30 +0100)
committerSimon Josefsson <simon@josefsson.org>
Sat, 19 Nov 2011 14:38:13 +0000 (15:38 +0100)
NEWS
doc/gdoc

diff --git a/NEWS b/NEWS
index 97d5f7b..bc373e5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ GNU Libtasn1 NEWS                                     -*- outline -*-
 * Noteworthy changes in release 2.11 (????-??-??) [stable]
 - tests: Added self-test of bit string functions.
 - build: Added windows/libtasn14win.mk rules to produce Windows binaries.
+- build: Don't hard code path to perl in doc/gdoc.
 
 * Noteworthy changes in release 2.10 (2011-10-25) [stable]
 - lib: Small optimization, possibly working around gcc/valgrind issue.
index 82d9e0a..975a85d 100755 (executable)
--- a/doc/gdoc
+++ b/doc/gdoc
@@ -1,6 +1,9 @@
-#!/usr/bin/perl
+eval '(exit $?0)' && eval 'exec perl -S "$0" ${1+"$@"}'
+  & eval 'exec perl -S "$0" $argv:q'
+    if 0;
+# Generate documentation from source code.
 
-## Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
+## Copyright (c) 2002-2011 Simon Josefsson
 ##                    added -texinfo, -listfunc, -pkg-name
 ##                    man page revamp
 ##                    various improvements