diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-19 12:39:34 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-19 12:39:34 -0600 |
commit | 8151a7080181fe5b79fb3ce5dfd2dc2830f15b17 (patch) | |
tree | 1cc3a8c5a64b1c3082fb85a7feab64ba2e569d1f /kdoctools/update-entities.sh | |
parent | 33b63cfa7e2dbc0a990a1eb74ea16bba93be5d32 (diff) | |
download | tdelibs-8151a7080181fe5b79fb3ce5dfd2dc2830f15b17.tar.gz tdelibs-8151a7080181fe5b79fb3ce5dfd2dc2830f15b17.zip |
Update the update-entities.sh script with improved method to
determine the tde-release-date entity.
Diffstat (limited to 'kdoctools/update-entities.sh')
-rw-r--r-- | kdoctools/update-entities.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/kdoctools/update-entities.sh b/kdoctools/update-entities.sh index 1b6e3bf2a..5345a71c6 100644 --- a/kdoctools/update-entities.sh +++ b/kdoctools/update-entities.sh @@ -36,8 +36,20 @@ else exit 1 fi -# Extract the file date stamp to use as the release date. -TDE_RELEASE_DATE=`find $TDEVERSION_FILE -printf "%TB %Te, %TY\n"` +# $TDEVERSION_FILE (tdeversion.h) remains stagnant throughout the git cycle. +# The internal release data is manually patched only for the official release. +# Therefore the file date stamp does not change. As the development cycle +# progresses, the file date stamp looks really old in the help handbooks. As +# the tde-release-date entity eventually will match the official release file +# date stamp, we can use the actual date up to that point, which looks nicer +# in the handbooks during the development cycle. +if [ -n "`echo \"$TDE_RELEASE_VERSION\" | grep DEVELOPMENT`" ]; then + # Development cycle: use the actual date as the release date. + TDE_RELEASE_DATE=`date +'%B %e, %Y'` +else + # Official release: extract the file date stamp as the release date. + TDE_RELEASE_DATE=`find $TDEVERSION_FILE -printf "%TB %Te, %TY\n"` +fi echo " TDE Release Date: $TDE_RELEASE_DATE" # Create a copyright date string. First release of Trinity was 3.5.11, April 29, 2010. TDE_RELEASE_COPYRIGHT="2010-`date +%Y`" |