3 # ###################################################################
4 # Copyright 2015, Pierre Gentile (p.gen.progs@gmail.com)
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
9 # ###################################################################
11 # Manage --help option
12 # """"""""""""""""""""
13 if echo "$@" |
grep -- "--help"; then
14 .
/configure
--help |
sed s
/configure
/build.sh
/g
18 # Ensure that aclocal wont' be called
19 # """""""""""""""""""""""""""""""""""
21 touch Makefile.
in configure config.h.
in
27 # Add the git version if this is a git clone
28 # """"""""""""""""""""""""""""""""""""""""""
29 [ -d .git
] && V
=`git log -1 --pretty=format:-%h` || V
=""
31 sed "/VERSION/s/\$/ \"$V\"/" config.h
> /tmp
/config.h$$
32 mv /tmp
/config.h$$ config.h
34 # Create the executable
35 # """""""""""""""""""""