-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-dist.sh
executable file
·96 lines (88 loc) · 2.35 KB
/
make-dist.sh
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
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/sh
MAKE=make
CONF_MAINT="--enable-maintainer-mode"
CONF_NOWERROR="--disable-warnings-into-error"
CONF_COMMON="$CONF_MAINT $CONF_NOWERROR"
CONF_NONE="$CONF_COMMON --disable-debug --disable-fep --disable-emacs --disable-gnome-applet --disable-kde-applet --disable-pref --disable-dict --without-anthy --without-canna --without-mana --without-prime --without-skk --without-x --without-xft --without-m17nlib --without-gtk2 --without-qt --without-qt-immodule --disable-compat-scm --without-eb --without-libedit"
CONF_DEFAULT="$CONF_COMMON"
if type apt > /dev/null 2>&1; then
sudo apt install -V \
libeb16-dev \
libqt4-dev \
qt5-qmake \
kdelibs-bin \
kdelibs5-dev
fi
for file in "/etc/eb.conf" "/usr/lib64/eb.conf" "/usr/lib/eb.conf" \
"/usr/local/etc/eb.conf" "/usr/etc/eb.conf"
do
if test -f "$file"; then
EB_CONF="$file"
break
fi
done
if test -z "$EB_CONF"; then
echo eb.conf not found
exit 1
fi
CONF_FULL_BASE_NO_MAINT="
$CONF_NOWERROR
--enable-debug
--enable-fep
--enable-emacs
--enable-gnome-applet
--enable-gnome3-applet
--enable-pref
--enable-dict
--with-anthy
--with-canna
--with-wnn
--with-sj3
--with-mana
--with-prime
--with-m17nlib
--with-gtk2
--with-gtk3
--without-qt
--without-qt-immodule
--enable-compat-scm
--with-eb
--with-eb-conf=$EB_CONF
--with-libedit
"
CONF_FULL_QT4_WO_MAINT="
QT_SELECT=4
$CONF_FULL_BASE_NO_MAINT
--enable-kde4-applet
--enable-notify=libnotify,knotify4
--with-qt4
--with-qt4-immodule
--without-qt5
--without-qt5-immodule
"
CONF_FULL_QT5_WO_MAINT="
QT_SELECT=5
$CONF_FULL_BASE_NO_MAINT
--enable-kde-applet
--enable-notify=libnotify
--with-qt5
--with-qt5-immodule
"
git submodule update --init --recursive
# Create a branch if a branch correspoinding to the tag doesn't exist.
# Then check out the branch.
(cd sigscheme/libgcroots && ./autogen.sh) \
&& (cd sigscheme && ./autogen.sh) \
&& ./autogen.sh \
|| { echo 'autogen failed.' && exit 1; }
# for conf_args in "$CONF_NONE" "$CONF_DEFAULT"; do
# echo "configure $conf_args"
# ./configure $conf_args && $MAKE dist \
# || { echo 'make dist failed'; exit 1; }
# done
for conf_args in "$CONF_FULL_QT4_NO_MAINT" "$CONF_FULL_QT5_NO_MAINT"; do
echo "configure $conf_args"
export DISTCHECK_CONFIGURE_FLAGS="$conf_args"
./configure $CONF_MAINT $conf_args && $MAKE distcheck sum \
|| { echo 'make distcheck failed'; exit 1; }
done