conor 2003/02/02 06:18:06
Modified: src/etc yearcheck.sh Log: Allow yearcheck to work out of the box - no symlink required Revision Changes Path 1.3 +5 -1 jakarta-ant/src/etc/yearcheck.sh Index: yearcheck.sh =================================================================== RCS file: /home/cvs/jakarta-ant/src/etc/yearcheck.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -u -r1.2 -r1.3 --- yearcheck.sh 26 Feb 2002 08:57:39 -0000 1.2 +++ yearcheck.sh 2 Feb 2003 14:18:06 -0000 1.3 @@ -3,7 +3,7 @@ # # The Apache Software License, Version 1.1 # -# Copyright (c) 2002 The Apache Software Foundation. All rights +# Copyright (c) 2002-2003 The Apache Software Foundation. All rights # reserved. # # Redistribution and use in source and binary forms, with or without @@ -81,6 +81,10 @@ fi YEAR=`basename $0` + +if [ $YEAR = yearcheck.sh ]; then + YEAR=`date -R | cut -d ' ' -f 4` +fi if [ -z "$1" ]; then cvs -z3 update -dP | fgrep -v proposal | cut -f 2 -d ' ' > $TEMP_FILE