test-update-copyright: don't hard-code /usr/bin/perl
authorJim Meyering <meyering@redhat.com>
Mon, 23 Nov 2009 10:28:00 +0000 (11:28 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 23 Nov 2009 10:28:00 +0000 (11:28 +0100)
* 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
tests/test-update-copyright.sh

index 7b0217c..50712ad 100644 (file)
--- 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.
index 859c75d..d555239 100755 (executable)
@@ -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 <<EOF
 '\" Copyright (C) 2006
 '\" Free Software Foundation,