Dotclear

Changeset 2537:90e50b5bc278


Ignore:
Timestamp:
11/13/13 11:31:59 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Message:

Remove unecessary files and folders from Clearbricks lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r2283 r2537  
    99config: 
    1010     mkdir -p ./$(DC) 
    11       
     11 
    1212     ## Copy needed folders and files 
    1313     cp -pRf ./admin ./inc ./themes ./index.php ./CHANGELOG ./CREDITS ./LICENSE ./README.md ./CONTRIBUTING.md ./$(DC)/ 
    14       
     14 
    1515     ## Locales directory 
    1616     mkdir -p ./$(DC)/locales 
    1717     cp -pRf ./locales/README ./locales/en ./locales/fr ./$(DC)/locales/ 
    18       
     18 
    1919     ## Create cache, db, plugins and public folders 
    2020     mkdir ./$(DC)/cache ./$(DC)/db ./$(DC)/plugins ./$(DC)/public 
     
    2222     cp inc/.htaccess ./$(DC)/db/ 
    2323     cp inc/.htaccess ./$(DC)/plugins/ 
    24       
     24 
    2525     ## Remove .svn folders 
    2626     find ./$(DIST)/ -type d -name '.svn' | xargs rm -rf 
     
    2929     find ./$(DIST)/ -type d -name '.hg*' | xargs rm -rf 
    3030     find ./$(DIST)/ -type f -name '.hg*' | xargs rm -rf 
    31       
     31 
    3232     ## Remove config file if any 
    3333     rm -f ./$(DC)/inc/config.php 
    34       
     34 
     35     ## Remove test files and folders, and makefile of Clearbricks 
     36     rm -rf ./$(DC)/inc/libs/clearbricks/tests 
     37     rm -f ./$(DC)/inc/libs/clearbricks/.atoum.* 
     38     rm -f ./$(DC)/inc/libs/clearbricks/composer.* 
     39     rm -f ./$(DC)/inc/libs/clearbricks/Makefile 
     40 
    3541     ## Copy built-in plugins 
    3642     cp -pRf \ 
     
    5359     ./plugins/widgets \ 
    5460     ./$(DC)/plugins/ 
    55       
     61 
    5662     ## Remove .svn folders 
    5763     find ./$(DIST)/ -type d -name '.svn' -print0 | xargs -0 rm -rf 
    58       
     64 
    5965     ## Remove .hg* files and folders 
    6066     find ./$(DIST)/ -type d -name '.hg*' | xargs rm -rf 
     
    6369     ## "Compile" .po files 
    6470     ./build-tools/make-l10n.php ./$(DC)/ 
    65       
     71 
    6672     ## Pack javascript files 
    6773     find $(DC)/admin/js/*.js -exec ./build-tools/min-js.php \{\} \; 
     
    7278     find $(DC)/plugins -name '*.js' -exec ./build-tools/min-js.php \{\} \; 
    7379     find $(DC)/themes/default/js/*.js -exec ./build-tools/min-js.php \{\} \; 
    74       
     80 
    7581     ## Debug off 
    7682     perl -pi -e "s|^//\*== DC_DEBUG|/*== DC_DEBUG|sgi;" $(DC)/inc/prepend.php $(DC)/inc/prepend.php 
    77       
     83 
    7884     ## Create digest 
    7985     cd $(DC) && ( \ 
     
    8187          > inc/digests \ 
    8288     ) 
    83       
     89 
    8490     touch config-stamp 
    8591 
     
    100106dist-l10n: 
    101107     [ -f config-stamp ] 
    102       
     108 
    103109     rm -rf ./$(DIST)/l10n 
    104110     mkdir -p ./$(DIST)/l10n 
    105       
     111 
    106112     find ./locales/ -maxdepth 1 -mindepth 1 -type d -not -name '.svn' -not -name '_pot' -not -name 'en' \ 
    107113     -exec cp -pRf \{\} ./$(DIST)/l10n/ \; 
    108       
     114 
    109115     find ./$(DIST)/l10n -type d -name '.svn' | xargs rm -rf 
    110116     ./build-tools/make-l10n.php ./$(DIST)/l10n/ 
    111       
     117 
    112118     cd ./$(DIST)/l10n && for i in *; do \ 
    113119          zip -r9 "$$i-$$(grep DC_VERSION ../dotclear/inc/prepend.php | cut -d"'" -f4).zip" "$$i"; \ 
    114120          rm -rf "$$i"; \ 
    115121     done 
    116       
     122 
    117123 
    118124clean: 
     
    128134     [ "$(iname)" != '' ] 
    129135     [ -d $(ipath)/$(iname) ] 
    130       
    131       
     136 
     137 
Note: See TracChangeset for help on using the changeset viewer.

Sites map