Changeset 3774

Show
Ignore:
Timestamp:
08/01/06 14:07:48 (2 years ago)
Author:
bergie
Message:

Adapted PEAR packaging to new SVN structure

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/support/makedist2.sh

    r2991 r3774  
    4747for component in $COMPONENTS; do 
    4848    echo "Packaging $component ..." 
    49     component_dir="$MIDCOM_SUPPORT_DIR/../lib/`echo $component|sed -e "s/\\./\\//g"`
     49    component_dir="$MIDCOM_SUPPORT_DIR/../src/$component
    5050    $PHP $MIDCOM_SUPPORT_DIR/pear-package.php $component > $component_dir/package.xml 
    5151    $PEAR package $component_dir/package.xml 
  • trunk/support/pear-package.php

    r3063 r3774  
    3737 
    3838// Determine requested component directory 
    39 $component['path'] = "{$midcom['root']}/lib"; 
     39$component['path'] = "{$midcom['root']}/src/{$component['name']}"; 
     40if (!file_exists($component['path'])) 
     41
     42    die("Directory {$component['path']} not found.\n"); 
     43
     44 
     45// Generate the base installation directory for the component 
    4046$component['baseinstalldir'] = "midcom/lib"; 
    4147$component_path_array = explode('.', $component['name']); 
    4248foreach ($component_path_array as $directory) 
    4349{ 
    44     $component['path'] = "{$component['path']}/{$directory}"; 
    4550    $component['baseinstalldir'] = "{$component['baseinstalldir']}/{$directory}"; 
    46     if (!file_exists($component['path'])) 
    47     { 
    48         die("Directory {$component['path']} not found.\n"); 
    49     } 
    5051} 
    5152