-
Notifications
You must be signed in to change notification settings - Fork 7
/
bootstrap.conf
114 lines (100 loc) · 2.82 KB
/
bootstrap.conf
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Copyright (C) 2016-2021 Simon Josefsson
# Copyright (C) 2016 Tim Rühsen
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# bootstrapping docs
printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > doc/Makefile.gdoc
# gnulib library name
source_base=gl
tests_base=gl/tests
gnulib_name=libgnu
checkout_only_file=
gnulib_modules="
error
getline
getopt-gnu
gettext-h
git-version-gen
gitlog-to-changelog
inline
lib-msvc-compat
lib-symbol-versions
lib-symbol-visibility
manywarnings
progname
readme-release
stdio
strchrnul
strverscmp
update-copyright
valgrind-tests
version-etc
"
unistring_modules="
localcharset
unictype/joiningtype-of
libunistring
unistr/u32-cpy-alloc
uniconv/u8-strconv-to-locale
unistr/u32-strlen
uniconv/u8-strconv-from-locale
unictype/bidiclass-of
unictype/category-M
unictype/category-test
unictype/scripts
uninorm/base
uninorm/nfc
uninorm/u32-normalize
unistr/u32-to-u8
unistr/u8-to-u32
unistr/u32-cmp
"
# Build prerequisites
buildreq="\
autoconf 2.64
automake 1.13
git 1.4.4
perl 5.5
make -
gperf -
gengetopt -
"
GTKDOCIZE=$(which gtkdocize 2>/dev/null)
if test $? -ne 0; then
echo "No gtk-doc support found. You can't build the docs."
# rm because gtk-doc.make might be a link to a protected file
rm -f gtk-doc.make 2>/dev/null
echo "EXTRA_DIST =" >gtk-doc.make
echo "CLEANFILES =" >>gtk-doc.make
GTKDOCIZE=""
else
$GTKDOCIZE
fi
bootstrap_post_import_hook ()
{
${GNULIB_SRCDIR}/gnulib-tool --without-tests --libtool --macro-prefix=unistring --lgpl=3orGPLv2 --dir=. --local-dir=unistring/override --lib=libunistring --source-base=unistring --m4-base=unistring/m4 --doc-base=doc --aux-dir=build-aux --makefile-name=gnulib.mk --avoid=malloc-posix --avoid=malloca --import ${unistring_modules}
# Automake requires that ChangeLog exist.
touch ChangeLog || return 1
}
bootstrap_tarcache=$GNULIB_BOOTSTRAP_CACHE/bootstrap-files-for-$package.tar.gz
bootstrap_epilogue ()
{
if test -n "$GNULIB_BOOTSTRAP_CACHE"; then
mkdir -p $GNULIB_BOOTSTRAP_CACHE
echo Saving a cache of generated files to $GNULIB_BOOTSTRAP_CACHE...
tar cfz $bootstrap_tarcache `git ls-files --others`
fi
}
if test -f $bootstrap_tarcache; then
echo Discovered bootstrap cache $bootstrap_tarcache, using it...
tar xfa $bootstrap_tarcache
exit 0
fi