mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/autoreconf: general cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
c1471c1ffd
commit
dfb1ae0d3e
@ -2,22 +2,21 @@
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
. config/options $1
|
||||
. config/options "${1}"
|
||||
|
||||
if [ ! -f "$PKG_BUILD/configure.in" \
|
||||
-a ! -f "$PKG_BUILD/configure.ac" ] ; then
|
||||
echo "configure.in or configure.ac not found"
|
||||
exit 1
|
||||
if [ ! -f "${PKG_BUILD}/configure.in" \
|
||||
-a ! -f "${PKG_BUILD}/configure.ac" ]; then
|
||||
die "configure.in or configure.ac not found"
|
||||
fi
|
||||
|
||||
if [ ! -f $PKG_BUILD/.autoreconf-done ] ; then
|
||||
touch $PKG_BUILD/NEWS $PKG_BUILD/AUTHORS $PKG_BUILD/ChangeLog
|
||||
mkdir -p $PKG_BUILD/m4
|
||||
if [ ! -f "${PKG_BUILD}/.autoreconf-done" ]; then
|
||||
touch "${PKG_BUILD}/NEWS" "${PKG_BUILD}/AUTHORS" "${PKG_BUILD}/ChangeLog"
|
||||
mkdir -p "${PKG_BUILD}/m4"
|
||||
|
||||
printf "%${BUILD_INDENT}c $(print_color CLR_AUTORECONF "AUTORECONF") $1\n" ' '>&$SILENT_OUT
|
||||
export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
|
||||
build_msg "CLR_AUTORECONF" "AUTORECONF" "${1}" "indent"
|
||||
|
||||
do_autoreconf $PKG_BUILD
|
||||
touch $PKG_BUILD/.autoreconf-done
|
||||
do_autoreconf "${PKG_BUILD}"
|
||||
touch "${PKG_BUILD}/.autoreconf-done"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user