[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Explicit interpreter paths considered harmful
From: |
Ludovic Courtès |
Subject: |
Re: Explicit interpreter paths considered harmful |
Date: |
Thu, 29 Oct 2009 22:57:27 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Here's a patch.
Likewise, ‘pmccabe2html’ assumes /usr/bin/awk, but I’m not sure what to
do here:
- ‘gl_PMCCABE2HTML’ does ‘AC_PROG_AWK’, so we could substitute @AWK@
in there.
- OTOH, ‘pmccabe2html’ is typically a maintainer script, so I’d rather
remove ‘AC_PROG_AWK’ and do something similar to the patch below.
Thoughts?
Thanks,
Ludo’.
>From a75bd801044aeaa3df5406185ce5a298c75b1d6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <address@hidden>
Date: Thu, 29 Oct 2009 22:53:06 +0100
Subject: [PATCH] Don't assume the availability of /usr/bin/perl for build-aux
scripts.
* build-aux/announce-gen, build-aux/gitlog-to-changelog,
build-aux/update-copyright, build-aux/useless-if-before-free: Don't
assume the availability of /usr/bin/perl.
---
build-aux/announce-gen | 6 ++++--
build-aux/gitlog-to-changelog | 6 ++++--
build-aux/update-copyright | 6 ++++--
build-aux/useless-if-before-free | 4 +++-
4 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/build-aux/announce-gen b/build-aux/announce-gen
index 972b881..024cb35 100755
--- a/build-aux/announce-gen
+++ b/build-aux/announce-gen
@@ -1,7 +1,9 @@
-#!/usr/bin/perl -w
+#!/bin/sh
+exec perl -wx "$0" "$@"
+#!perl
# Generate a release announcement message.
-my $VERSION = '2009-09-11 09:50'; # UTC
+my $VERSION = '2009-10-29 21:47'; # UTC
# The definition above must lie within the first 8 lines in order
# for the Emacs time-stamp write hook (at end) to update it.
# If you change this file with Emacs, please let the write hook
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog
index a0f8a08..4c3f428 100755
--- a/build-aux/gitlog-to-changelog
+++ b/build-aux/gitlog-to-changelog
@@ -1,7 +1,9 @@
-#!/usr/bin/perl
+#!/bin/sh
+exec perl -x "$0" "$@"
+#!perl
# Convert git log output to ChangeLog format.
-my $VERSION = '2009-08-12 16:49'; # UTC
+my $VERSION = '2009-10-29 21:47'; # UTC
# The definition above must lie within the first 8 lines in order
# for the Emacs time-stamp write hook (at end) to update it.
# If you change this file with Emacs, please let the write hook
diff --git a/build-aux/update-copyright b/build-aux/update-copyright
index 2480142..bb61808 100755
--- a/build-aux/update-copyright
+++ b/build-aux/update-copyright
@@ -1,7 +1,9 @@
-#!/usr/bin/perl -0777 -pi
+#!/bin/sh
+exec perl -x -0777 -pi "$0" "$@"
+#!perl
# Update an FSF copyright year list to include the current year.
-my $VERSION = '2009-09-09.22:00'; # UTC
+my $VERSION = '2009-10-29.21:48'; # UTC
# Copyright (C) 2009 Free Software Foundation, Inc.
#
diff --git a/build-aux/useless-if-before-free b/build-aux/useless-if-before-free
index abcdef2..d707aee 100755
--- a/build-aux/useless-if-before-free
+++ b/build-aux/useless-if-before-free
@@ -1,4 +1,6 @@
-#!/usr/bin/perl -T
+#!/bin/sh
+exec perl -T -x "$0" "$@"
+#!perl
# Detect instances of "if (p) free (p);".
# Likewise for "if (p != NULL) free (p);". And with braces.
# Also detect "if (NULL != p) free (p);".
--
1.6.4.2
- Explicit interpreter paths considered harmful, Ludovic Courtès, 2009/10/29
- Re: Explicit interpreter paths considered harmful, Paolo Bonzini, 2009/10/29
- Re: Explicit interpreter paths considered harmful, Ludovic Courtès, 2009/10/29
- Re: Explicit interpreter paths considered harmful, Paolo Bonzini, 2009/10/29
- Re: Explicit interpreter paths considered harmful, Jim Meyering, 2009/10/29
- Re: Explicit interpreter paths considered harmful, Ludovic Courtès, 2009/10/29
- Re: Explicit interpreter paths considered harmful, Jim Meyering, 2009/10/29
- Re: Explicit interpreter paths considered harmful,
Ludovic Courtès <=
- Re: Explicit interpreter paths considered harmful, Simon Josefsson, 2009/10/30
- Re: Explicit interpreter paths considered harmful, Ludovic Courtès, 2009/10/30
Re: Explicit interpreter paths considered harmful, Ludovic Courtès, 2009/10/29
Re: Explicit interpreter paths considered harmful, Karl Berry, 2009/10/29