Changeset 13572
- Timestamp:
- 11/22/07 15:49:48 (10 months ago)
- Files:
-
- trunk/midcom/build.xml (modified) (2 diffs)
- trunk/midcom/build/installMidcomCore.php (modified) (1 diff)
- trunk/midcom/build/packageMidCOMcore.php (modified) (4 diffs)
- trunk/midcom/midcom.core/midcom.php (modified) (1 diff)
- trunk/midcom/midcom.core/midcom/config/midcom_config.php (modified) (1 diff)
- trunk/midcom/midcom.core/static (moved) (moved from trunk/midcom/midcom.core/midcom/static)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/build.xml
r12611 r13572 6 6 <property name="absolute_basedir" value="" /> 7 7 <property name="phpdocdir" value="documentation/api" /> 8 <property name="coreVersion" value="2.9.0beta16" /> 8 9 <resolvepath propertyName="absolute_basedir" file="${project.basedir}"/> 9 10 … … 109 110 template="${project.basedir}/midcom.core/package-template.xml" 110 111 returnProperty="pear_name" 112 version="${coreVersion}" 111 113 > 112 114 </packageMidCOMcore> 115 116 <move file="${project.basedir}/midcom.core/midcom/config/midcom_config.php" 117 tofile="${project.basedir}/midcom.core/midcom/config/midcom_config.php~" 118 overwrite="true" 119 /> 120 121 <!-- insert midcom version into the correct file. 122 @todo: consider moving the original out of the package dir 123 --> 124 <copy file="${project.basedir}/midcom.core/midcom/config/midcom_config.php~" 125 tofile="${project.basedir}/midcom.core/midcom/config/midcom_config.php" 126 overwrite="true" 127 > 128 <filterchain> 129 <replacetokens begintoken="##" endtoken="##"> 130 <token key="MIDCOM_VERSION" value="${coreVersion}" /> 131 </replacetokens> 132 </filterchain> 133 </copy> 134 135 136 113 137 <pearPackagePackage 114 138 path="${project.basedir}/midcom.core" 115 139 target_dir="${target_dir}" 116 140 /> 141 142 <copy file="${project.basedir}/midcom.core/midcom/config/midcom_config.php~" 143 overwrite="true" 144 tofile="${project.basedir}/midcom.core/midcom/config/midcom_config.php" /> 145 146 117 147 <echo>Package ${pear_name} created in ${target_dir}</echo> 118 148 </target> trunk/midcom/build/installMidcomCore.php
r13424 r13572 141 141 * Make symlinks for the static files 142 142 */ 143 $dirs = $this->get_module_dirs($this->from . "/ static");143 $dirs = $this->get_module_dirs($this->from . "/../static"); 144 144 145 145 foreach ($dirs as $dir => $value) { 146 $from = "{$this->from}/ static/$dir";146 $from = "{$this->from}/../static/$dir"; 147 147 $to = "{$this->static_dir}/$dir"; 148 148 $this->make_symlink($from, $to); trunk/midcom/build/packageMidCOMcore.php
r12894 r13572 40 40 41 41 protected $returnProperty; // name of property to set to return value 42 protected $version; 42 43 43 44 /** … … 83 84 $this->stability = $s; 84 85 } 86 public function setVersion($s) { 87 $this->version = $s; 88 } 89 85 90 86 91 // todo: add a setVersion from the commandline … … 128 133 $package->addRole('xml', 'mgdschema'); 129 134 135 var_dump($this->version); 136 130 137 $package->generateContents(); 131 138 … … 192 199 $package->setAPIStability($this->stability); 193 200 $package->setPhpDep($this->phpversion); 201 $package->setReleaseVersion($this->version); 194 202 echo "Done with makeBase\n\n"; 195 203 return $package; trunk/midcom/midcom.core/midcom.php
r13439 r13572 58 58 /////////////////////////////////////// 59 59 //Constants, Globals and Configuration 60 require('version.php');61 60 require('constants.php'); 62 61 require('globals.php'); trunk/midcom/midcom.core/midcom/config/midcom_config.php
r13439 r13572 319 319 */ 320 320 $GLOBALS['midcom_config_default'] = Array(); 321 321 /** 322 * MidCOM version 323 * @global string 324 */ 325 $GLOBALS['midcom_version'] = '##MIDCOM_VERSION##'; 322 326 // Initialize Helpers 323 327 $phpversion = phpversion();
