forked from mcabber/loudmouth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautogen.sh
executable file
·34 lines (30 loc) · 842 Bytes
/
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
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
: ${AUTORECONF=autoreconf}
: ${GTKDOCIZE=gtkdocize}
if ! [ -f "./autogen.sh" ]; then
# Avoid creation of files in random directories
echo "Error: You have to run this script in the root of loudmouth sources."
exit 1
fi
if [ "x$1" = "x-h" ] || [ "x$1" = "x--help" ]; then
echo "./autogen.sh [-g]"
echo
echo " -n disable gtk-doc"
echo
echo "Also uses environment variables AUTORECONF and GTKDOCIZE"
exit 1
elif [ "x$1" = "x-n" ]; then
# ensure, that gtk-doc.make exists and is readable
# otherwise automake will fail - it is included from
# doc/reference/Makefile.am
if [ -h "./gtk-doc.make" ]; then
rm -f "./gtk-doc.make"
fi
if [ -n "./gtk-doc.make" ]; then
: > "./gtk-doc.make"
fi
GTKDOCIZE=":"
fi
$GTKDOCIZE || exit 1
$AUTORECONF --install || exit 1