diff options
Diffstat (limited to 'libraries/edje/src/bin/edje_recc')
-rw-r--r-- | libraries/edje/src/bin/edje_recc | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/libraries/edje/src/bin/edje_recc b/libraries/edje/src/bin/edje_recc deleted file mode 100644 index 2ae81ad..0000000 --- a/libraries/edje/src/bin/edje_recc +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e | ||
4 | |||
5 | usage () { | ||
6 | echo "Usage:" | ||
7 | echo " edje_recc [OPTIONS] input_file.edj" | ||
8 | echo "" | ||
9 | echo "Where OPTIONS is one or more of:" | ||
10 | echo "" | ||
11 | echo "-v Verbose output" | ||
12 | echo "-no-lossy Do NOT allow images to be lossy" | ||
13 | echo "-no-comp Do NOT allow images to be lossless compression" | ||
14 | echo "-no-raw Do NOT allow images to be zero compression" | ||
15 | echo "-min-quality VAL Do NOT allow lossy images with quality < VAL (0-100)" | ||
16 | echo "-max-quality VAL Do NOT allow lossy images with quality > VAL (0-100)" | ||
17 | exit -1 | ||
18 | } | ||
19 | |||
20 | if [ $# -lt 1 ]; then | ||
21 | usage | ||
22 | fi | ||
23 | |||
24 | OPT="" | ||
25 | if [ $# -ge 1 ]; then | ||
26 | for I in $@; do | ||
27 | case "$I" in | ||
28 | -h) | ||
29 | usage | ||
30 | ;; | ||
31 | |||
32 | -help) | ||
33 | usage | ||
34 | ;; | ||
35 | |||
36 | --help) | ||
37 | usage | ||
38 | ;; | ||
39 | |||
40 | *.edj) | ||
41 | IN=$I | ||
42 | ;; | ||
43 | |||
44 | *) | ||
45 | OPT=$OPT" "$I | ||
46 | ;; | ||
47 | esac | ||
48 | done | ||
49 | fi | ||
50 | |||
51 | if [ -z "$IN" ]; then | ||
52 | echo "ERROR: NO input file.edj provided!" | ||
53 | echo "" | ||
54 | usage; | ||
55 | fi | ||
56 | |||
57 | F=`basename $IN` | ||
58 | B=`basename $F .edj` | ||
59 | T="./...edje_tmp" | ||
60 | rm -rf $T | ||
61 | mkdir -p $T | ||
62 | cp $IN $T | ||
63 | cd $T | ||
64 | edje_decc $F | ||
65 | cd $B | ||
66 | ./build.sh $OPT | ||
67 | cd ../.. | ||
68 | mv $T/$B/$F $IN | ||
69 | rm -rf $T | ||