mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 08:49:58 +00:00
scripts/unpack: add support for version specific subfolders
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
f5d4937ada
commit
9592214d51
@ -77,15 +77,29 @@ fi
|
||||
[ -d $BUILD/${PKG_NAME}${PKG_VERSION} ] && PKG_BUILD=`ls -d $BUILD/${PKG_NAME}${PKG_VERSION}`
|
||||
[ -d $BUILD/${PKG_NAME} ] && PKG_BUILD=`ls -d $BUILD/${PKG_NAME}`
|
||||
|
||||
for i in $PKG_DIR/patches/$PKG_NAME-$PKG_VERSION*.patch ; do
|
||||
for i in $PKG_DIR/patches/$PKG_NAME-*.patch ; do
|
||||
if [ -f "$i" ]; then
|
||||
PATCH=`basename $i`
|
||||
PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'`
|
||||
if [ "$PT" != "patch" -a "$PT" != "$TARGET_ARCH" ]; then
|
||||
printf "%${BUILD_INDENT}c SKIP PATCH: $i\n" ' '>&$SILENT_OUT
|
||||
printf "%${BUILD_INDENT}c SKIP PATCH (common): $i\n" ' '>&$SILENT_OUT
|
||||
continue;
|
||||
else
|
||||
printf "%${BUILD_INDENT}c APPLY PATCH: $i\n" ' '>&$SILENT_OUT
|
||||
printf "%${BUILD_INDENT}c APPLY PATCH (common): $i\n" ' '>&$SILENT_OUT
|
||||
cat $i | patch -d `echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 >&$VERBOSE_OUT
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
for i in $PKG_DIR/patches/$PKG_VERSION/*.patch ; do
|
||||
if [ -f "$i" ]; then
|
||||
PATCH=`basename $i`
|
||||
PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'`
|
||||
if [ "$PT" != "patch" -a "$PT" != "$TARGET_ARCH" ]; then
|
||||
printf "%${BUILD_INDENT}c SKIP PATCH ($PKG_VERSION): $i\n" ' '>&$SILENT_OUT
|
||||
continue;
|
||||
else
|
||||
printf "%${BUILD_INDENT}c APPLY PATCH ($PKG_VERSION): $i\n" ' '>&$SILENT_OUT
|
||||
cat $i | patch -d `echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 >&$VERBOSE_OUT
|
||||
fi
|
||||
fi
|
||||
@ -96,10 +110,10 @@ for i in $PROJECT_DIR/$PROJECT/patches/$PKG_NAME/*.patch ; do
|
||||
PATCH=`basename $i`
|
||||
PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'`
|
||||
if [ "$PT" != "patch" -a "$PT" != "$TARGET_ARCH" ]; then
|
||||
printf "%${BUILD_INDENT}c SKIP PROJECT PATCH: $i\n" ' '>&$SILENT_OUT
|
||||
printf "%${BUILD_INDENT}c SKIP PATCH (project): $i\n" ' '>&$SILENT_OUT
|
||||
continue;
|
||||
else
|
||||
printf "%${BUILD_INDENT}c APPLY PROJECT PATCH: $i\n" ' '>&$SILENT_OUT
|
||||
printf "%${BUILD_INDENT}c APPLY PATCH (project): $i\n" ' '>&$SILENT_OUT
|
||||
cat $i | patch -d `echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 >&$VERBOSE_OUT
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user