Changeset 2732

Show
Ignore:
Timestamp:
01/21/06 13:11:15 (3 years ago)
Author:
tarjei
Message:

Changes:

pear-package.php:

  • Files ending with .css,.htc,.jpg,.gif,.png,.txt etc get the role 'data' so they do not crash validation.

findComponents.sh :
* A quick script to identifiy which compoents are ready for packaging.
* Uses checkManifest to see if there is a package.xml entry in the manifest.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/support/pear-package.php

    r2731 r2732  
    249249            continue; 
    250250        } 
    251          
    252251        // Handle packaging file roles 
    253252        $role = 'php'; 
     
    258257            $role = 'mgdschema'; 
    259258        } 
     259 
     260 
     261         $path_parts = pathinfo($entry); 
     262 
     263         switch ($path_parts['extension'] )  
     264         { 
     265             // binary formats 
     266            case 'jpg': 
     267            case 'gif': 
     268            case 'png': 
     269            case 'zip': 
     270            case 'tgz': 
     271             
     272                $role = 'data'; 
     273            break; 
     274 
     275            case 'html': 
     276            case 'js': 
     277            case 'htc': 
     278            case 'css': 
     279            case 'txt': 
     280                $role = 'data'; 
     281            break; 
     282                     
     283         } 
     284         
    260285         
    261286        if (is_dir("{$directory_path}/{$entry}"))