Merge pull request #10602 from agileware/CIVICRM-167
[civicrm-core.git] / CRM / Core / CodeGen / Version.php
1 <?php
2
3 /**
4 * Generate configuration files
5 */
6 class CRM_Core_CodeGen_Version extends CRM_Core_CodeGen_BaseTask {
7 public function run() {
8 echo "Generating civicrm-version file\n";
9
10 $template = new CRM_Core_CodeGen_Util_Template('php');
11 $template->assign('db_version', $this->config->db_version);
12 $template->assign('cms', ucwords($this->config->cms));
13 $template->run('civicrm_version.tpl', $this->config->phpCodePath . "civicrm-version.php");
14 }
15
16 }