-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure
executable file
·84 lines (73 loc) · 2.18 KB
/
configure
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
cat << EOF
Usage: ./configure [options]
options:
-h, --help print this message
--prefix=PREFIX install architecture-independent files into PREFIX
[/usr/local]
--docdir=DIR install documents in DIR [DATAROOT/docs/inyokaedit]
--mandir=DIR install manpage in DIR [DATAROOT/man]
--community=COMMUNITY install specified Inyoka community [ubuntuusers_de]
for installation without any community files,
define --community=none
--preview=PREVIEW compile with Qt WebKit [useqtwebkit], Qt WebEngine
[useqtwebengine] or none of them [none] for the
integrated article preview. Omit parameter completly
for automatic detection.
EOF
exit 1
fi
for opt; do
optarg="${opt#*=}"
case "$opt" in
--prefix=*)
prefix="$optarg"
;;
--docdir=*)
docdir="$optarg"
;;
--mandir=*)
mandir="$optarg"
;;
--community=*)
community="$optarg"
;;
--preview=*)
preview="$optarg"
;;
*)
;;
esac
done
test -n "$prefix" || prefix="/usr/local"
test -n "$docdir" || docdir='${dataroot}/docs/inyokaedit'
test -n "$mandir" || mandir='${dataroot}/man'
test -n "$community" || community='ubuntuusers_de'
test -n "$preview" || preview=''
if [ "$community" != "none" ]; then
community="community/$community"
if [ ! -d $community ]; then
echo ""
echo "ERROR: Community folder \"$community\" not found!"
echo "Please clone or download community branch: https://github.com/inyokaproject/inyokaedit/tree/community"
echo "Or define different community option. See: ./configure -h"
echo ""
exit 2
fi
fi
echo ""
echo "generate config.mak ..."
echo ""
rm -f config.mak
cat >> config.mak << EOF
prefix = $prefix
docdir = $docdir
mandir = $mandir
community = $community
preview = "PREVIEW=$preview"
EOF
cat config.mak
echo ""
echo "Now run 'make && make install'"
exit 0