Merge pull request #1242 from vpeter4/unpack-patch

scripts/unpack: use relative path for showing a patch file
This commit is contained in:
MilhouseVH 2017-01-31 19:20:40 +00:00 committed by GitHub
commit 439b086469

View File

@ -171,7 +171,7 @@ for i in $PKG_DIR/patches/$PKG_NAME-*.patch \
fi
if [ -f "$i" ]; then
printf "%${BUILD_INDENT}c ${boldgreen}APPLY PATCH${endcolor} ${boldwhite}${PATCH_DESC}${endcolor} $i\n" ' '>&$SILENT_OUT
printf "%${BUILD_INDENT}c ${boldgreen}APPLY PATCH${endcolor} ${boldwhite}${PATCH_DESC}${endcolor} ${i#$ROOT/}\n" ' '>&$SILENT_OUT
if [ -n "$(grep -E '^GIT binary patch$' $i)" ]; then
cat $i | git apply --directory=`echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 --verbose --whitespace=nowarn >&$VERBOSE_OUT
else