author | Frank Zschockelt <lm@freakysoft.de> |
Thu, 11 Feb 2016 21:00:41 +0100 | |
changeset 702 | 75866de0e731 |
parent 637 | f7b3628c8a5a |
child 709 | bdcdb9b34992 |
permissions | -rwxr-xr-x |
1 | 1 |
#!/bin/sh |
138
210cf8993393
2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
124
diff
changeset
|
2 |
# Run this to generate all the initial makefiles, etc. |
1 | 3 |
|
582
e25522f3c098
Gut autogen.sh and replace most of it with autoreconf.
Samuel Tesla <stesla@engineyard.com>
parents:
302
diff
changeset
|
4 |
: ${AUTORECONF=autoreconf} |
138
210cf8993393
2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
124
diff
changeset
|
5 |
: ${GTKDOCIZE=gtkdocize} |
124
de7f74dbf83c
2005-07-30 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
1
diff
changeset
|
6 |
|
637
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
7 |
if ! [ -f "./autogen.sh" ]; then |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
8 |
# Avoid creation of files in random directories |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
9 |
echo "Error: You have to run this script in the root of loudmouth sources." |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
10 |
exit 1 |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
11 |
fi |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
12 |
|
634
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
13 |
if [ "x$1" = "x-h" ] || [ "x$1" = "x--help" ]; then |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
14 |
echo "./autogen.sh [-g]" |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
15 |
echo |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
16 |
echo " -n disable gtk-doc" |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
17 |
echo |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
18 |
echo "Also uses environment variables AUTORECONF and GTKDOCIZE" |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
19 |
exit 1 |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
20 |
elif [ "x$1" = "x-n" ]; then |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
21 |
# ensure, that gtk-doc.make exists and is readable |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
22 |
# otherwise automake will fail - it is included from |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
23 |
# doc/reference/Makefile.am |
637
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
24 |
if [ -h "./gtk-doc.make" ]; then |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
25 |
rm -f "./gtk-doc.make" |
634
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
26 |
fi |
637
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
27 |
if [ -n "./gtk-doc.make" ]; then |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
28 |
: > "./gtk-doc.make" |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
29 |
fi |
f7b3628c8a5a
[autogen] always fail, if not in source root
Myhailo Danylenko <isbear@ukrpost.net>
parents:
634
diff
changeset
|
30 |
GTKDOCIZE=":" |
634
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
31 |
fi |
bf5a813120aa
Non-doc scenario for autogen.sh
Myhailo Danylenko <isbear@ukrpost.net>
parents:
582
diff
changeset
|
32 |
|
582
e25522f3c098
Gut autogen.sh and replace most of it with autoreconf.
Samuel Tesla <stesla@engineyard.com>
parents:
302
diff
changeset
|
33 |
$GTKDOCIZE || exit 1 |
e25522f3c098
Gut autogen.sh and replace most of it with autoreconf.
Samuel Tesla <stesla@engineyard.com>
parents:
302
diff
changeset
|
34 |
$AUTORECONF --install || exit 1 |