PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/autoreconf

http://github.com/OpenELEC/OpenELEC.tv
#! | 38 lines | 32 code | 6 blank | 0 comment | 0 complexity | 0e0865ed7953206e01452ebfa1d43653 MD5 | raw file
 1#!/bin/bash
 2
 3################################################################################
 4#      This file is part of OpenELEC - http://www.openelec.tv
 5#      Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
 6#
 7#  OpenELEC is free software: you can redistribute it and/or modify
 8#  it under the terms of the GNU General Public License as published by
 9#  the Free Software Foundation, either version 2 of the License, or
10#  (at your option) any later version.
11#
12#  OpenELEC is distributed in the hope that it will be useful,
13#  but WITHOUT ANY WARRANTY; without even the implied warranty of
14#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15#  GNU General Public License for more details.
16#
17#  You should have received a copy of the GNU General Public License
18#  along with OpenELEC.  If not, see <http://www.gnu.org/licenses/>.
19################################################################################
20
21. config/options $1
22
23if [ ! -f "$PKG_BUILD/configure.in" \
24    -a ! -f "$PKG_BUILD/configure.ac" ] ; then
25  echo "configure.in or configure.ac not found"
26  exit 1
27fi
28
29if [ ! -f $PKG_BUILD/.autoreconf-done ] ; then
30  touch $PKG_BUILD/NEWS $PKG_BUILD/AUTHORS $PKG_BUILD/ChangeLog
31  mkdir -p $PKG_BUILD/m4
32
33  printf "%${BUILD_INDENT}c ${boldmagenta}AUTORECONF${endcolor}   $1\n" ' '>&$SILENT_OUT
34  export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
35
36  do_autoreconf $PKG_BUILD
37  touch $PKG_BUILD/.autoreconf-done
38fi