2019-04-21 14:35:44 -04:00
|
|
|
#!/bin/sh
|
|
|
|
##############################################################################
|
|
|
|
# Name: misc/scripts/inc_year
|
|
|
|
# Purpose: increments the year in various copyright notices
|
|
|
|
# Created: 2019-04-21
|
2019-04-22 08:12:05 -04:00
|
|
|
# Copyright: (c) 2019 Vadim Zeitlin <vadim@wxwidgets.org>
|
2019-04-21 14:35:44 -04:00
|
|
|
# Licence: wxWindows licence
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
. `dirname $0`/run_sed_common.sh
|
|
|
|
|
|
|
|
new_year=`date +%Y`
|
|
|
|
old_year=`expr $new_year - 1`
|
|
|
|
|
|
|
|
echo "Updating dates to use $new_year instead of $old_year:"
|
|
|
|
|
|
|
|
# Update copyright to extend to the new year.
|
2021-08-17 16:08:55 -04:00
|
|
|
for f in docs/doxygen/mainpages/copyright.h docs/doxygen/regen.sh \
|
2019-04-21 14:35:44 -04:00
|
|
|
interface/wx/aboutdlg.h interface/wx/generic/aboutdlgg.h \
|
|
|
|
; do
|
|
|
|
run_sed $f "s/1992-$old_year/1992-$new_year/"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Some files use later initial copyright year, for some reason...
|
|
|
|
run_sed src/msw/version.rc "s/1993-$old_year/1993-$new_year/"
|
|
|
|
run_sed src/common/utilscmn.cpp "s/1995-$old_year/1995-$new_year/"
|
|
|
|
|
|
|
|
# And Mac files are much newer than that.
|
2021-08-17 16:08:55 -04:00
|
|
|
run_sed CMakeLists.txt "s/2002-$old_year/2002-$new_year/"
|
2022-01-02 07:31:25 -05:00
|
|
|
run_sed build/bakefiles/mac_bundles.bkl "s/2002-$old_year/2002-$new_year/"
|
2021-08-15 10:32:42 -04:00
|
|
|
run_sed samples/minimal/Info_cocoa.plist "s/2005-$old_year/2005-$new_year/"
|