Changeset 2537:90e50b5bc278
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r2283 r2537 9 9 config: 10 10 mkdir -p ./$(DC) 11 11 12 12 ## Copy needed folders and files 13 13 cp -pRf ./admin ./inc ./themes ./index.php ./CHANGELOG ./CREDITS ./LICENSE ./README.md ./CONTRIBUTING.md ./$(DC)/ 14 14 15 15 ## Locales directory 16 16 mkdir -p ./$(DC)/locales 17 17 cp -pRf ./locales/README ./locales/en ./locales/fr ./$(DC)/locales/ 18 18 19 19 ## Create cache, db, plugins and public folders 20 20 mkdir ./$(DC)/cache ./$(DC)/db ./$(DC)/plugins ./$(DC)/public … … 22 22 cp inc/.htaccess ./$(DC)/db/ 23 23 cp inc/.htaccess ./$(DC)/plugins/ 24 24 25 25 ## Remove .svn folders 26 26 find ./$(DIST)/ -type d -name '.svn' | xargs rm -rf … … 29 29 find ./$(DIST)/ -type d -name '.hg*' | xargs rm -rf 30 30 find ./$(DIST)/ -type f -name '.hg*' | xargs rm -rf 31 31 32 32 ## Remove config file if any 33 33 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 35 41 ## Copy built-in plugins 36 42 cp -pRf \ … … 53 59 ./plugins/widgets \ 54 60 ./$(DC)/plugins/ 55 61 56 62 ## Remove .svn folders 57 63 find ./$(DIST)/ -type d -name '.svn' -print0 | xargs -0 rm -rf 58 64 59 65 ## Remove .hg* files and folders 60 66 find ./$(DIST)/ -type d -name '.hg*' | xargs rm -rf … … 63 69 ## "Compile" .po files 64 70 ./build-tools/make-l10n.php ./$(DC)/ 65 71 66 72 ## Pack javascript files 67 73 find $(DC)/admin/js/*.js -exec ./build-tools/min-js.php \{\} \; … … 72 78 find $(DC)/plugins -name '*.js' -exec ./build-tools/min-js.php \{\} \; 73 79 find $(DC)/themes/default/js/*.js -exec ./build-tools/min-js.php \{\} \; 74 80 75 81 ## Debug off 76 82 perl -pi -e "s|^//\*== DC_DEBUG|/*== DC_DEBUG|sgi;" $(DC)/inc/prepend.php $(DC)/inc/prepend.php 77 83 78 84 ## Create digest 79 85 cd $(DC) && ( \ … … 81 87 > inc/digests \ 82 88 ) 83 89 84 90 touch config-stamp 85 91 … … 100 106 dist-l10n: 101 107 [ -f config-stamp ] 102 108 103 109 rm -rf ./$(DIST)/l10n 104 110 mkdir -p ./$(DIST)/l10n 105 111 106 112 find ./locales/ -maxdepth 1 -mindepth 1 -type d -not -name '.svn' -not -name '_pot' -not -name 'en' \ 107 113 -exec cp -pRf \{\} ./$(DIST)/l10n/ \; 108 114 109 115 find ./$(DIST)/l10n -type d -name '.svn' | xargs rm -rf 110 116 ./build-tools/make-l10n.php ./$(DIST)/l10n/ 111 117 112 118 cd ./$(DIST)/l10n && for i in *; do \ 113 119 zip -r9 "$$i-$$(grep DC_VERSION ../dotclear/inc/prepend.php | cut -d"'" -f4).zip" "$$i"; \ 114 120 rm -rf "$$i"; \ 115 121 done 116 122 117 123 118 124 clean: … … 128 134 [ "$(iname)" != '' ] 129 135 [ -d $(ipath)/$(iname) ] 130 131 136 137
Note: See TracChangeset
for help on using the changeset viewer.