| OLD | NEW |
| (Empty) |
| 1 #!/bin/sh | |
| 2 readonly LIGHT_OPTS="\ | |
| 3 --closure-count=10 \ | |
| 4 --function-count=10 \ | |
| 5 --inner-function-count=10 \ | |
| 6 --function-call-count=1 \ | |
| 7 --closure-call-count=1 \ | |
| 8 --inner-function-line-count=1 \ | |
| 9 --loop-count=5" | |
| 10 readonly MEDIUM_OPTS="\ | |
| 11 --closure-count=50 \ | |
| 12 --function-count=50 \ | |
| 13 --inner-function-count=20 \ | |
| 14 --function-call-count=5 \ | |
| 15 --closure-call-count=5 \ | |
| 16 --inner-function-line-count=2 \ | |
| 17 --loop-count=5" | |
| 18 readonly HEAVY_OPTS="\ | |
| 19 --closure-count=200 \ | |
| 20 --function-count=200 \ | |
| 21 --inner-function-count=40 \ | |
| 22 --function-call-count=10 \ | |
| 23 --closure-call-count=10 \ | |
| 24 --inner-function-line-count=3 \ | |
| 25 --loop-count=5" | |
| 26 | |
| 27 function generate { | |
| 28 local generator="./second_batch_js_generator.py" | |
| 29 local header="// Generated with $generator $@" | |
| 30 { | |
| 31 echo $header; | |
| 32 $generator $@ | yui-compressor --type js; | |
| 33 } | |
| 34 } | |
| 35 | |
| 36 generate $LIGHT_OPTS > second_batch_js_light.min.js | |
| 37 generate $MEDIUM_OPTS > second_batch_js_medium.min.js | |
| 38 generate $HEAVY_OPTS > second_batch_js_heavy.min.js | |
| OLD | NEW |