Index: trunk/extensions/UsabilityInitiative/Makefile |
— | — | @@ -1,7 +1,6 @@ |
2 | 2 | # |
3 | 3 | # Handy makefile to combine and minify css and javascript files |
4 | 4 | # |
5 | | -SHELL := /bin/bash |
6 | 5 | |
7 | 6 | CSS := \ |
8 | 7 | css/suggestions.css\ |
— | — | @@ -58,31 +57,15 @@ |
59 | 58 | Vector/Modules/FooterCleanup/FooterCleanup.js\ |
60 | 59 | Vector/Modules/SimpleSearch/SimpleSearch.js |
61 | 60 | |
62 | | -USABILITYINITIATIVE_HOOKS := \ |
| 61 | +all: \ |
63 | 62 | css/combined.css\ |
64 | 63 | css/combined.min.css\ |
65 | | - $(CSS)\ |
66 | 64 | js/plugins.combined.js\ |
67 | 65 | js/plugins.combined.min.js\ |
68 | | - $(PLUGINS) |
69 | | - |
70 | | -WIKIEDITOR_HOOKS := \ |
71 | | - $(WIKIEDITOR_MODULES)\ |
72 | 66 | WikiEditor/WikiEditor.combined.js\ |
73 | | - WikiEditor/WikiEditor.combined.min.js |
74 | | - |
75 | | -VECTOR_HOOKS := \ |
76 | | - $(VECTOR_MODULES)\ |
| 67 | + WikiEditor/WikiEditor.combined.min.js\ |
77 | 68 | Vector/Vector.combined.js\ |
78 | 69 | Vector/Vector.combined.min.js |
79 | | - |
80 | | -all: \ |
81 | | - $(USABILITYINITIATIVE_HOOKS)\ |
82 | | - $(WIKIEDITOR_HOOKS)\ |
83 | | - UsabilityInitiative.hooks.php\ |
84 | | - WikiEditor/WikiEditor.hooks.php\ |
85 | | - Vector/Vector.hooks.php\ |
86 | | - |
87 | 70 | |
88 | 71 | # JavaScript Combination |
89 | 72 | |
— | — | @@ -125,16 +108,6 @@ |
126 | 109 | jsmin: |
127 | 110 | type -P jsmin &>/dev/null || ( wget http://www.crockford.com/javascript/jsmin.c; gcc jsmin.c -o jsmin ) |
128 | 111 | |
129 | | -# Simple incrementer of versions |
130 | | - |
131 | | -UsabilityInitiative.hooks.php: $(USABILITYINITIATIVE_HOOKS) |
132 | | -WikiEditor/WikiEditor.hooks.php: $(WIKIEDITOR_HOOKS) |
133 | | -Vector/Vector.hooks.php: $(VECTOR_HOOKS) |
134 | | - |
135 | | -%.hooks.php: $(WIKIEDITOR_HOOKS) |
136 | | - for file in $?; do basefile="$${file#$(shell echo $* | sed "s/\([^\/]*\/\).*/\\1/")}"; sed -i "s/\(.*'src' => '$${basefile//\//\\/}', 'version' => \)\([0-9+]*\)\(.*\)/\\1\\2+1\\3/" $@; \ |
137 | | - for i in $$(grep --only-matching -P " ([0-9]+(\+[0-9]))+ " $@); do sed -i "s/ $$i / $$(bc <<< $$i) /" $@; done; done |
138 | | - |
139 | 112 | # Actions |
140 | 113 | |
141 | 114 | distclean: clean |