diff --git a/misc-scripts/annual_copyright_updater.sh b/misc-scripts/annual_copyright_updater.sh index 810867f5513e2ac59113f77069f967cb35072b9b..6f6cb0f7ca7c487d57265ef5c3b2e96b201b40f2 100755 --- a/misc-scripts/annual_copyright_updater.sh +++ b/misc-scripts/annual_copyright_updater.sh @@ -33,8 +33,8 @@ for var in $dirs; do year=$(date "+%Y") last_year=$(($year - 1)) - search="\\[1999-${last_year}\\] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute" - replacement="\\[1999-${year}\\] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute" + search="\\[1999-[0-9]*\\] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute" + replacement="[1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute\nCopyright [2015-2016] EMBL-European Bioinformatics Institute" echo "About to scan $(pwd) for files to replace '$search' with '$replacement'" @@ -48,4 +48,4 @@ for var in $dirs; do done cd $original_wd -done \ No newline at end of file +done