File: makehoz

package info (click to toggle)
hoz 1.65-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 444 kB
  • sloc: ansic: 4,299; makefile: 148; sh: 48
file content (45 lines) | stat: -rwxr-xr-x 574 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

if test $# -eq 0; then
    echo "parms: <cli|gtk|both> [en|es|fr]"
    exit 1
fi

cli="0"
gtk="0"
lang="-DHOZ_LANG_EN"

while test $# -gt 0; do
    case $1 in
        cli)
	    cli="1";;
        gtk)
	    gtk="1";;
	both)
	    cli="1"
	    gtk="1"
	    ;;
	en)
	    lang="-DHOZ_LANG_EN";;
	es)
	    lang="-DHOZ_LANG_ES";;
	fr)
	    lang="-DHOZ_LANG_FR";;
	*)
	    echo "Unknown parameter: " $1
	    exit 2
	  
	
    esac
    shift
done


if test ${cli} -eq 1; then
    make LANG=${lang} cli
fi
if test ${gtk} -eq 1; then
    make LANG=${lang} gtk
fi

# vim ft=sh