Compare commits

..
3 Commits
Author SHA1 Message Date
cagette@ct8 407405389d cagette-péi 2020-11-11 18:05:57 +04:00
cagette@ct8 a2b9bf3e54 simplify template master 2020-11-11 17:50:50 +04:00
cagette@ct8 c3eb0a1a80 Makefile 2020-09-28 17:13:53 +00:00
8 changed files with 11 additions and 11 deletions
-1
View File
@@ -2,7 +2,6 @@
*.php
config.xml
www/plugin/*
Makefile
tmp/*
*node_modules*
*.map
+6 -4
View File
@@ -15,7 +15,7 @@ install:
#setup dev environnement from source
install_dev:
#set config file to debug=1
@sed -e 's?debug=.*?debug="1"?g' --in-place config.xml
#@sed -e 's?debug=.*?debug="1"?g' --in-place config.xml
#install haxe dependencies in .haxelib
haxelib newrepo
haxelib -always install cagette.hxml
@@ -71,11 +71,13 @@ i18n:
templates:
haxe cagette.hxml -D i18n_generation
@make LANG=fr ctemplates
@make LANG=en ctemplates
@make LANG=de ctemplates
#@make LANG=en ctemplates
#@make LANG=de ctemplates
msgfmt www/lang/texts_fr.po -o www/lang/texts_fr.mo
ctemplates:
(cd lang/$(LANG)/tpl; temploc2 -macros macros.mtt -output ../tmp/ *.mtt */*.mtt */*/*.mtt */*/*/*.mtt */*/*/*/*.mtt)
# (cd lang/$(LANG)/tpl; temploc2 -macros macros.mtt -output ../tmp/ *.mtt */*.mtt */*/*.mtt */*/*/*.mtt */*/*/*/*.mtt)
(cd lang/$(LANG)/tpl; temploc2 -macros macros.mtt -output ../tmp/ *.mtt */*.mtt */*/*.mtt)
#Compile and run unit tests
tests:
-1
View File
@@ -1 +0,0 @@
This is where the compiled templates are.
-1
View File
@@ -1 +0,0 @@
This is where the compiled templates are.
-1
View File
@@ -1 +0,0 @@
This is where the compiled templates are.
+1 -1
View File
@@ -201,7 +201,7 @@
<!--
::raw _("Cagette.net is made by <a href='https://www.alilo.fr' target='_blank'><img src='/img/alilo-trans-black.png' /></a>")::<br/>
-->
<span>version ::VERSION::-::getPlatform()::</span>
<span>version ::VERSION::</span>
</div>
<div class="row">
+2 -1
View File
@@ -16,7 +16,8 @@ class App extends sugoi.BaseApp {
* @doc https://github.com/fponticelli/thx.semver
*/
//public static var VERSION = ([0,9,2] : Version).withPre("july");
public static var VERSION = ([0,9,2] : Version).withPre(MyMacros.getGitShortSHA(), MyMacros.getGitCommitDate());
//public static var VERSION = ([0,9,2] : Version).withPre(MyMacros.getGitShortSHA(), MyMacros.getGitCommitDate());
public static var VERSION = "cagette-péi " + MyMacros.getGitCommitDate();
public function new(){
super();
+2 -1
View File
@@ -20,7 +20,8 @@ class MyMacros {
commitDate = StringTools.replace(commitDate, " ", ".");
commitDate = StringTools.replace(commitDate, "-", ".");
commitDate = StringTools.replace(commitDate, ":", ".");
commitDate = commitDate.substr(0,16);
//commitDate = commitDate.substr(0,16);
commitDate = commitDate.substr(0,10);
// Generates a string expression
return macro $v{commitDate};