-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap.conf
125 lines (102 loc) · 3.62 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
115
116
117
118
119
120
121
122
123
124
125
# bootstrap.conf (Slingshot) version 2015-02-25
#
# Copyright (C) 2013-2016 Gary V. Vaughan
# Written by Gary V. Vaughan, 2013
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# 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 GNU Libtool; see the file COPYING. If not, a copy
# can be downloaded from http://www.gnu.org/licenses/gpl.html,
# or obtained by writing to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
## -------------- ##
## Configuration. ##
## -------------- ##
# List of programs, minimum versions, and software urls required to
# bootstrap, maintain and release the slingshotted program.
# Build prerequisites
buildreq='
git 1.7.0 http://git-scm.com
help2man 1.29 http://www.gnu.org/s/help2man
specl 14 http://rocks.moonscript.org/manifests/gvvaughan/specl-14-1.rockspec
'
# Prequisite rocks that need to be installed for travis builds to work.
travis_extra_rocks='
specl
'
slingshot_files='
travis.yml.in
'
# No need to do any gnulib-tooling here.
gnulib_tool=true
## ---------- ##
## Overrides. ##
## ---------- ##
# require_bootstrap_uptodate
# --------------------------
# Complain if the version of bootstrap in the build-aux directory differs
# from the one we are running.
require_bootstrap_uptodate=func_require_bootstrap_uptodate
func_require_bootstrap_uptodate ()
{
$debug_cmd
$require_build_aux
_G_bootstrap_sources="
$build_aux/bootstrap.in
$build_aux/bootstrap.slingshot
$build_aux/merge-sections
"
_G_missing_bootstrap_sources=
for _G_src in $_G_bootstrap_sources; do
test -f "$_G_src" || func_append _G_missing_bootstrap_sources " $_G_src"
done
if test -n "$_G_missing_bootstrap_sources"; then
func_warning upgrade "\
Please check-in$_G_missing_bootstrap_sources to your git
repository, so that I can tell you when bootstrap needs
rebuilding."
else
rm -f bootstrap.new
$build_aux/merge-sections \
-e '^require_bootstrap_uptodate=.*$' '' \
$build_aux/bootstrap.slingshot < $build_aux/bootstrap.in > bootstrap.new
if func_cmp_s "$progpath" bootstrap.new; then
rm -f bootstrap.new
func_verbose "bootstrap script up to date"
else
chmod 555 bootstrap.new
func_warning upgrade "\
An updated bootstrap script has been generated for you in
'bootstrap.new'. After you've verified that you want
the changes, you can update with:
mv -f bootstrap.new $progname
./$progname
Or you can disable this check permanently by adding the
following to 'bootstrap.conf':
require_bootstrap_uptodate=:"
fi
fi
require_bootstrap_uptodate=:
}
# Since we have neither slingshot_files nor gnulib_modules, we need
# to call this manually.
func_ensure_changelog
# Local variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "# bootstrap.conf (Slingshot) version "
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "$"
# End: