2013-07-19 02:35:52 +02:00
|
|
|
#!/bin/bash
|
2010-11-25 18:30:18 +01:00
|
|
|
|
2011-01-09 21:26:03 +01:00
|
|
|
################################################################################
|
|
|
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
2016-01-02 17:26:58 +01:00
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2011-01-09 21:26:03 +01:00
|
|
|
#
|
2013-12-21 21:51:48 +01:00
|
|
|
# OpenELEC is free software: you can redistribute it and/or modify
|
2011-01-09 21:26:03 +01:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2013-12-21 21:51:48 +01:00
|
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
2011-01-09 21:26:03 +01:00
|
|
|
#
|
2013-12-21 21:51:48 +01:00
|
|
|
# OpenELEC is distributed in the hope that it will be useful,
|
2011-01-09 21:26:03 +01:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2013-12-21 21:51:48 +01:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2011-01-09 21:26:03 +01:00
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2013-12-21 21:51:48 +01:00
|
|
|
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
2011-01-09 21:26:03 +01:00
|
|
|
################################################################################
|
|
|
|
|
|
2010-11-25 18:30:18 +01:00
|
|
|
. config/options $1
|
|
|
|
|
|
2014-08-26 19:31:44 +03:00
|
|
|
if [ ! -f "$PKG_BUILD/configure.in" \
|
|
|
|
|
-a ! -f "$PKG_BUILD/configure.ac" ] ; then
|
|
|
|
|
echo "configure.in or configure.ac not found"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
2010-11-25 18:30:18 +01:00
|
|
|
|
2014-07-30 19:44:09 +03:00
|
|
|
if [ ! -f $PKG_BUILD/.autoreconf-done ] ; then
|
2014-08-10 21:27:45 +03:00
|
|
|
touch $PKG_BUILD/NEWS $PKG_BUILD/AUTHORS $PKG_BUILD/ChangeLog
|
|
|
|
|
mkdir -p $PKG_BUILD/m4
|
|
|
|
|
|
2014-07-30 19:44:09 +03:00
|
|
|
printf "%${BUILD_INDENT}c ${boldmagenta}AUTORECONF${endcolor} $1\n" ' '>&$SILENT_OUT
|
2014-08-10 21:27:45 +03:00
|
|
|
export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
|
|
|
|
|
|
2014-07-30 19:44:09 +03:00
|
|
|
do_autoreconf $PKG_BUILD
|
|
|
|
|
touch $PKG_BUILD/.autoreconf-done
|
|
|
|
|
fi
|