setup: use the value not the index when updating an entry
[platform/upstream/gummiboot.git] / autogen.sh
1 #!/bin/sh
2
3 #  This file is part of gummiboot.
4 #
5 #  gummiboot is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU Lesser General Public License as published by
7 #  the Free Software Foundation; either version 2.1 of the License, or
8 #  (at your option) any later version.
9 #
10 #  gummiboot is distributed in the hope that it will be useful, but
11 #  WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 #  Lesser General Public License for more details.
14 #
15 #  You should have received a copy of the GNU Lesser General Public License
16 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18 set -e
19
20 autoreconf --force --install --symlink
21
22 args="\
23 --prefix=/usr"
24
25 if [ "x$1" = "xc" ]; then
26         ./configure $args
27         make clean
28 else
29         echo
30         echo "----------------------------------------------------------------"
31         echo "Initialized build system. For a common configuration please run:"
32         echo "----------------------------------------------------------------"
33         echo
34         echo "./configure $args"
35         echo
36 fi