Changeset 12750 for modules/branches/2.10/package.php
- Timestamp:
- 10/04/11 09:37:08 (2 years ago)
- Files:
-
- modules/branches/2.10/package.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/package.php
r12749 r12750 68 68 foreach ($vars['modules'] as $mod) { 69 69 $mod = trim($mod, '/'); 70 $tar_dir = $mod; 70 71 $files = 71 72 $filename = … … 82 83 $parser = new xml2ModuleArray($xml); 83 84 $xmlarray = $parser->parseAdvanced($xml); 85 84 86 //TODO: not sure how to detect a broken xml --MB 85 87 if (!true) { … … 104 106 } 105 107 106 //check php files for syntax terrors108 //check php files for syntax errors 107 109 if ($vars['checkphp']) { 108 110 $files = scandirr($mod, true); … … 116 118 } 117 119 } 118 120 121 //include module specifc hook, if present 122 if (file_exists($mod . '/' . 'package_hook.php')) { 123 include($mod . '/' . 'package_hook.php'); 124 } 125 126 //include any global hooks, if present 127 if (file_exists('package_hook.php')) { 128 include('package_hook.php'); 129 } 130 119 131 //check in out standing files 120 132 if (run_cmd('svn st ' . $mod . '|wc -l') > 0) { 121 run_cmd('svn ci -m "Auto Check-in of any outstanding patches in ' . $mod . '" ' . $mod); 122 } 123 133 run_cmd('svn ci -m "Auto Check-in of any outstanding changes in ' . $mod . '" ' . $mod); 134 } 124 135 125 136 //set tarball name var … … 127 138 128 139 //build tarball 129 run_cmd('tar zcf ' . $filename . ' ' . $ mod . ' --exclude ".*" -C ' . $mod);140 run_cmd('tar zcf ' . $filename . ' ' . $tar_dir . ' --exclude ".*" -C ' . $tar_dir); 130 141 131 142 //update md5 sum
