From 210ed50db61a6c572ae1fcf91d9d9df7ff6ec74a Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sun, 2 Feb 2003 14:18:06 +0000 Subject: [PATCH] Allow yearcheck to work out of the box - no symlink required git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273960 13f79535-47bb-0310-9956-ffa450edef68 --- src/etc/yearcheck.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/etc/yearcheck.sh b/src/etc/yearcheck.sh index 0f4981e3e..7df685b28 100755 --- a/src/etc/yearcheck.sh +++ b/src/etc/yearcheck.sh @@ -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 @@ -82,6 +82,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 else