-
Notifications
You must be signed in to change notification settings - Fork 15
/
bootstrap
executable file
·40 lines (34 loc) · 1.11 KB
/
bootstrap
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
#!/bin/sh
#
# bootstrap
# This file is part of slide-switch.
#
# Copyright (C) 2016-2019, 2022 The slide-switch authors
# https://github.com/jefferyto/openwrt-slide-switch
#
# slide-switch is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# slide-switch 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 slide-switch. If not, see <http://www.gnu.org/licenses/>.
#
set -o errexit
me=$(basename "$0")
if autoreconf --version >/dev/null 2>&1; then
autoreconf --install --verbose "$@"
else
echo "$me: running: aclocal $@"
aclocal "$@"
echo "$me: running: autoconf $@"
autoconf "$@"
echo "$me: running: automake --add-missing --copy $@"
automake --add-missing --copy "$@"
fi
echo
echo "Ready for \`cd build && ../configure && make && make install'"