mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-30 20:11:06 +00:00
scripts/fixconfigtools: automate fixing of configtools
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
998fc20bcd
commit
15c2f0113d
@ -22,11 +22,18 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
for i in $@; do
|
||||
[ -f "$i/config.guess" ] && cp -f $SCRIPTS/configtools/config.guess $i
|
||||
[ -f "$i/config.sub" ] && cp -f $SCRIPTS/configtools/config.sub $i
|
||||
[ -f "$i/configure.guess" ] && cp -f $SCRIPTS/configtools/config.guess $i/configure.guess
|
||||
[ -f "$i/configure.sub" ] && cp -f $SCRIPTS/configtools/config.sub $i/configure.sub
|
||||
[ -d $BUILD/${PKG_NAME}[-_.]${PKG_VERSION} ] && PKG_BUILD=`ls -d $BUILD/${PKG_NAME}[-_.]${PKG_VERSION}`
|
||||
[ -d $BUILD/${PKG_NAME}${PKG_VERSION} ] && PKG_BUILD=`ls -d $BUILD/${PKG_NAME}${PKG_VERSION}`
|
||||
|
||||
for i in `find $PKG_BUILD -name config.guess`; do
|
||||
CONFIGTOOLSDIR=`dirname $i`
|
||||
|
||||
printf "%${INDENT}c FIXCONFIG $1: $CONFIGTOOLSDIR\n" >&$SILENT_OUT
|
||||
|
||||
[ -f "$CONFIGTOOLSDIR/config.guess" ] && cp -f $SCRIPTS/configtools/config.guess $CONFIGTOOLSDIR
|
||||
[ -f "$CONFIGTOOLSDIR/config.sub" ] && cp -f $SCRIPTS/configtools/config.sub $CONFIGTOOLSDIR
|
||||
[ -f "$CONFIGTOOLSDIR/configure.guess" ] && cp -f $SCRIPTS/configtools/config.guess $CONFIGTOOLSDIR/configure.guess
|
||||
[ -f "$CONFIGTOOLSDIR/configure.sub" ] && cp -f $SCRIPTS/configtools/config.sub $CONFIGTOOLSDIR/configure.sub
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
@ -85,7 +85,7 @@ for i in $PKG_DIR/patches/$PKG_NAME-$PKG_VERSION*.patch ; do
|
||||
fi
|
||||
done
|
||||
|
||||
$SCRIPTS/fixconfigtools $PKG_BUILD
|
||||
$SCRIPTS/fixconfigtools $1
|
||||
|
||||
[ -f "$PKG_DIR/unpack" ] && $PKG_DIR/unpack $@ >&$VERBOSE_OUT
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user