changeset 12346:7839ef932c72

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.
author Jim Meyering <meyering@redhat.com>
date Mon, 23 Nov 2009 11:28:00 +0100
parents 97d443c1572f
children 8fcfa42d797d
files ChangeLog tests/test-update-copyright.sh
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-11-23  Jim Meyering  <meyering@redhat.com>
+
+	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  <bruno@clisp.org>
 
 	duplocale: Add support for glibc 2.3.x.
--- a/tests/test-update-copyright.sh
+++ b/tests/test-update-copyright.sh
@@ -223,7 +223,7 @@
 ## -------------- ##
 
 TMP=$TMP_BASE-current-year
-YEAR=`/usr/bin/perl -e 'print [localtime]->[5] + 1900'`;
+YEAR=`date +%Y`
 cat > $TMP <<EOF
 '\" Copyright (C) 2006
 '\" Free Software Foundation,