forked from phuang/ibus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautogen.sh
executable file
·52 lines (43 loc) · 1.35 KB
/
autogen.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
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="ibus"
DIST_FILES="
engine/simple.xml
src/ibusemojigen.h
src/ibusunicodegen.h
"
FEDORA_PKG1='autoconf automake libtool gettext-devel'
FEDORA_PKG2='glib2-devel gtk2-devel gtk3-devel qt5-qtbase-devel
wayland-devel'
FEDORA_PKG3='cldr-emoji-annotation iso-codes-devel unicode-emoji unicode-ucd'
(test -z "$DISABLE_INSTALL_PKGS") && {
(test -f /etc/fedora-release ) && {
dnf update --assumeno $FEDORA_PKG1 || exit 1
dnf update --assumeno $FEDORA_PKG2 || exit 1
dnf update --assumeno $FEDORA_PKG3 || exit 1
}
}
(test -f $srcdir/configure.ac \
&& test -f $srcdir/README ) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
which gnome-autogen.sh || {
echo "Not found gnome-autogen.sh. You may need to install gnome-common"
exit 1
}
(test -f $srcdir/ChangeLog) || {
touch $srcdir/ChangeLog
}
CFLAGS=${CFLAGS-"-Wall -Wformat -Werror=format-security"}
# need --enable-gtk-doc for gnome-autogen.sh to make dist
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4" REQUIRED_AUTOMAKE_VERSION=1.11 CFLAGS="$CFLAGS" . gnome-autogen.sh "$@"
(test -z "$SAVE_DIST_FILES") && {
for f in $DIST_FILES ; do
echo "rm $f"
rm $f
done
}