Changeset 2731
- Timestamp:
- 01/20/06 15:33:13 (3 years ago)
- Files:
-
- trunk/lib/net/nehmer/jobmarket/config/manifest.inc (modified) (2 diffs)
- trunk/support/Role_MgdSchema/Mgdschema.php (modified) (1 diff)
- trunk/support/makedist2.sh (modified) (1 diff)
- trunk/support/pear-package.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/net/nehmer/jobmarket/config/manifest.inc
r2501 r2731 1 1 'name' => 'net.nehmer.jobmarket', 2 2 'version' => 1, 3 'state' => 'stable', 3 4 'class_definitions' => Array('midcomdba.inc'), 4 5 5 'watches' => Array 6 6 ( … … 23 23 ), 24 24 ), 25 'package.xml' => Array( 26 'summary' => 'Job market', 27 'description' => 'Job posting bulletin board', 28 'maintainers' => Array( 29 'torben' => Array( 30 'name' => 'Torben Nehmer', 31 'email' => 'torber@nehmer.net', 32 'role' => 'lead', 33 ), 34 ), 35 ), trunk/support/Role_MgdSchema/Mgdschema.php
r2726 r2731 46 46 $installing_paths = parent::processInstallation($pkg, $atts, $file, $tmp_path, $layer); 47 47 $installing_paths[1] = $installing_paths[0]; 48 $installing_paths[2] = $installing_paths[1].'/'.basename($file); 48 49 // Clean up the filename 50 $mgdschema_name = basename($file); 51 if ($mgdschema_name == 'mgdschema.xml') 52 { 53 $mgdschema_name = $pkg->getPackage().'.xml'; 54 } 55 56 $installing_paths[2] = "{$installing_paths[1]}/{$mgdschema_name}"; 49 57 return $installing_paths; 50 58 } trunk/support/makedist2.sh
r2730 r2731 28 28 de.linkm.newsticker 29 29 de.linkm.taviewer 30 net.nemein.ping" 30 net.nemein.ping 31 net.nehmer.jobmarket" 31 32 32 33 for component in $COMPONENTS; do trunk/support/pear-package.php
r2725 r2731 222 222 if (!$name) 223 223 { 224 $ name = basename($directory_path);224 $dir_name = basename($directory_path); 225 225 } 226 226 227 227 $prefix .= ' '; 228 228 229 $contents_string .= "{$prefix}<dir name=\"{$ name}\">\n";229 $contents_string .= "{$prefix}<dir name=\"{$dir_name}\">\n"; 230 230 231 231 // List contents … … 250 250 } 251 251 252 // Handle packaging file roles 253 $role = 'php'; 254 if ( $dir_name == 'config' 255 && $entry == 'mgdschema.xml') 256 { 257 // MgdSchemas shipped by components are placed in config/mgdschema.xml 258 $role = 'mgdschema'; 259 } 260 252 261 if (is_dir("{$directory_path}/{$entry}")) 253 262 { … … 259 268 // List the files 260 269 // TODO: Support other roles than PHP? 261 $contents_string .= "{$prefix} <file baseinstalldir=\"{$baseinstalldir}\" name=\"{$entry}\" role=\" php\" />\n";270 $contents_string .= "{$prefix} <file baseinstalldir=\"{$baseinstalldir}\" name=\"{$entry}\" role=\"{$role}\" />\n"; 262 271 } 263 272 }
