[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] fix test-update-copyright when perl is not in /usr/bin/perl
From: |
Christophe LYON |
Subject: |
[patch] fix test-update-copyright when perl is not in /usr/bin/perl |
Date: |
Mon, 14 Sep 2009 15:52:29 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090812) |
Hello,
Here is a small patch to make "make check" PASS when a suitable perl is
not in /usr/bin. (without this, I had update-copyright.sh FAIL, while my
system has fairly recent perl installed, but not in /usr/bin)
Christophe.
diff -ru coreutils-7.6/build-aux/update-copyright
coreutils-7.6-patched/build-aux/update-copyright
--- coreutils-7.6/build-aux/update-copyright 2009-08-30 10:52:24.000000000
+0200
+++ coreutils-7.6-patched/build-aux/update-copyright 2009-09-14
14:41:05.006359233 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -0777 -pi
+#!/usr/bin/env perl -0777 -pi
# Update an FSF copyright year list to include the current year.
my $VERSION = '2009-08-14.18:56'; # UTC
diff -ru coreutils-7.6/gnulib-tests/test-update-copyright.sh
coreutils-7.6-patched/gnulib-tests/test-update-copyright.sh
--- coreutils-7.6/gnulib-tests/test-update-copyright.sh 2009-08-16
15:27:49.000000000 +0200
+++ coreutils-7.6-patched/gnulib-tests/test-update-copyright.sh 2009-09-14
11:27:36.499490804 +0200
@@ -32,7 +32,7 @@
TMP=$TMP_BASE
s=$TMP-script
-printf '#!/usr/bin/perl -pi\ns/a/b/\n' > $s
+printf '#!/usr/bin/env perl -pi\ns/a/b/\n' > $s
chmod a+x $s
echo a > $TMP-in
./$s $TMP-in 2>/dev/null && test b = "`cat $TMP-in 2>/dev/null`" ||
@@ -215,7 +215,7 @@
## -------------- ##
TMP=$TMP_BASE-current-year
-YEAR=`/usr/bin/perl -e 'print [localtime]->[5] + 1900'`;
+YEAR=`/usr/bin/env perl -e 'print [localtime]->[5] + 1900'`;
cat > $TMP <<EOF
'\" Copyright (C) 2006
'\" Free Software Foundation,
- [patch] fix test-update-copyright when perl is not in /usr/bin/perl,
Christophe LYON <=