From cd92aee60f54dbfed8c46899825e7f5c70a86fd3 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 14 Apr 2011 07:55:18 +0000 Subject: [PATCH] * fix for task #396 --- Makefile | 19 +++++++++++-------- build/sae/config.yaml | 5 +++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 6ef9da845e..c0a8dc2d6b 100644 --- a/Makefile +++ b/Makefile @@ -59,20 +59,23 @@ build4sae: mv zentaopms/install.php.new zentaopms/install.php mv zentaopms/upgrade.php.new zentaopms/upgrade.php touch zentaopms/config/my.php + # change the logic of merge model file in helper.class.php. + sed -e 's/\$$app->getTmpRoot/"saemc:\/\/" . \$$app\-\>getTmpRoot/g' zentaopms/framework/helper.class.php >zentaopms/framework/helper.class.new + mv zentaopms/framework/helper.class.new zentaopms/framework/helper.class.php # get the extension files. svn export https://svn.cnezsoft.com/easysoft/trunk/zentaoext/sae mv sae/lib/saestorage zentaopms/lib/ cp -fr sae/* zentaopms/module/ # crreate the merged model files for file module. - cat zentaopms/module/file/model.php > zentaopms/tmp/model/file.php - echo 'class extFileModel extends fileModel\n{' >> zentaopms/tmp/model/file.php - sed -e 's/> zentaopms/tmp/model/file.php - echo '\n}' >> zentaopms/tmp/model/file.php + #cat zentaopms/module/file/model.php > zentaopms/tmp/model/file.php + #echo 'class extFileModel extends fileModel\n{' >> zentaopms/tmp/model/file.php + #sed -e 's/> zentaopms/tmp/model/file.php + #echo '\n}' >> zentaopms/tmp/model/file.php # crreate the merged model files for install module. - cat zentaopms/module/install/model.php > zentaopms/tmp/model/install.php - echo 'class extInstallModel extends installModel\n{' >> zentaopms/tmp/model/install.php - sed -e 's/> zentaopms/tmp/model/install.php - echo '\n}' >> zentaopms/tmp/model/install.php + #cat zentaopms/module/install/model.php > zentaopms/tmp/model/install.php + #echo 'class extInstallModel extends installModel\n{' >> zentaopms/tmp/model/install.php + #sed -e 's/> zentaopms/tmp/model/install.php + #echo '\n}' >> zentaopms/tmp/model/install.php # create the package. mkdir 10 mv zentaopms 10/code diff --git a/build/sae/config.yaml b/build/sae/config.yaml index 67a29bef88..4395ed2ecf 100644 --- a/build/sae/config.yaml +++ b/build/sae/config.yaml @@ -1,4 +1,9 @@ name: zentaopms version: 10 +cron: + - description: cron test + url: project-computeburn-admin.html + schedule: every day of month 00:00 + timezone: Beijing handle: - rewrite: if(!is_dir() && !is_file()) goto "index.php/%{REQUEST_URI}"