scripts/fixconfigtools: automate fixing of configtools

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-02-08 16:39:46 +01:00
parent 998fc20bcd
commit 15c2f0113d
2 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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