From: Jim Meyering Date: Mon, 23 Nov 2009 10:28:00 +0000 (+0100) Subject: test-update-copyright: don't hard-code /usr/bin/perl X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fe2cbf6bb3dcf60a7c4004c332f9ef6ea855290;p=pspp 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. --- 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 <