openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit 782c49174161598efcee4f38c719a82914b953b3
parent d6c113194f0a1ea0ac1ff7c18d0c95e0f6f51ed4
Author: Jan Dankert <develop@jandankert.de>
Date:   Tue, 20 Oct 2020 00:52:38 +0200

New: A build date in the Version class.

Diffstat:
Mdev-helper/README.md | 2+-
Mdev-helper/tag-version.sh | 11+++++++----
Mmodules/cms/base/Version.class.php | 1+
3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/dev-helper/README.md b/dev-helper/README.md @@ -19,6 +19,6 @@ Makes the necessary output files writable, then updates them. - `-u <url>` the current start url, where the CMS is installed. - `-w` do not exit, **watch**es the files for modifications -- `-x <type>` where `type` is one of `tpl`,`lang`,`js`,`css`,`xsd`. +- `-x <type>` where `type` is one of `tpl`,`lang`,`js`,`css`,`xsd` or `all`. You can to the same while [invoking the update via your browser](./update.php). \ No newline at end of file diff --git a/dev-helper/tag-version.sh b/dev-helper/tag-version.sh @@ -1,5 +1,5 @@ #!/bin/bash -# +# Setting a version number and commit to VCS. # VERSION=$1 SCRIPT=`basename "$0"` @@ -14,6 +14,8 @@ fi function set_version { VERSION=$1 + DATE=$2 + DATE_STR=$3 cat << EOF > $OUTFILE <?php @@ -22,17 +24,18 @@ function set_version { namespace cms\base; class Version { const VERSION = '${VERSION}'; + const DATE = ${DATE}; } EOF } -DATE=`date -R` +DATE=`date +%s` -set_version $VERSION +set_version $VERSION $DATE #git commit -m "New version tag $VERSION" $OUTFILE #git tag $VERSION -set_version 'dev-snapshot' +set_version 'dev-snapshot' 'null' #git commit -m "Setting development status" $OUTFILE diff --git a/modules/cms/base/Version.class.php b/modules/cms/base/Version.class.php @@ -4,4 +4,5 @@ namespace cms\base; class Version { const VERSION = 'dev-snapshot'; + const DATE = null; }