From 0fe2cbf6bb3dcf60a7c4004c332f9ef6ea855290 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 23 Nov 2009 11:28:00 +0100 Subject: [PATCH] test-update-copyright: don't hard-code /usr/bin/perl * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than perl to print the current year. Gilles Espinasse reported that the replaced use of perl was hard-coded as /usr/bin/perl. --- ChangeLog | 7 +++++++ tests/test-update-copyright.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7b0217c001..50712ada7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-11-23 Jim Meyering + + test-update-copyright: don't hard-code /usr/bin/perl + * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than + perl to print the current year. Gilles Espinasse reported that + the replaced use of perl was hard-coded as /usr/bin/perl. + 2009-11-23 Bruno Haible duplocale: Add support for glibc 2.3.x. diff --git a/tests/test-update-copyright.sh b/tests/test-update-copyright.sh index 859c75d0f1..d555239509 100755 --- a/tests/test-update-copyright.sh +++ b/tests/test-update-copyright.sh @@ -223,7 +223,7 @@ rm $TMP* ## -------------- ## TMP=$TMP_BASE-current-year -YEAR=`/usr/bin/perl -e 'print [localtime]->[5] + 1900'`; +YEAR=`date +%Y` cat > $TMP <