Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8074 | superturbo | 1 | #!/bin/bash |
2 | make_gen() |
||
3 | { |
||
4 | cat .makefile >> makefile |
||
5 | } |
||
6 | |||
7 | if [[ $1 == "-rus" && $# == 1 ]] |
||
8 | then |
||
9 | echo "Russian language selected!" |
||
10 | echo "#define LANG_RUS 1" > lang.h |
||
11 | echo "DIR=bin/rus" > makefile |
||
12 | make_gen |
||
13 | exit 0 |
||
14 | elif [[ $1 == "-eng" && $# == 1 ]] |
||
15 | then |
||
16 | echo "English language selected!" |
||
17 | echo "#define LANG_ENG 1" > lang.h |
||
18 | echo "DIR=bin/eng" > makefile |
||
19 | make_gen |
||
20 | exit 0 |
||
21 | else |
||
22 | echo "Reference: ./configure |
||
23 | Languages: |
||
24 | -rus - Configure as Russian |
||
25 | -eng - Configure as English" |
||
26 | exit 0 |
||
27 | fi |
||
28 |