resync_svn: filterdiff can't remove the binary patch sections

This commit is contained in:
zturtleman 2017-08-07 04:57:33 +00:00
parent 3a54e2d53b
commit 5620be89ed

View file

@ -325,17 +325,20 @@ if [ ! -f "$PATCH" ] ; then
svn diff $SVN_PATH@$CURRENT_REV $SVN_PATH@$RESYNC_REV > $PATCH
fi
if [ ! -f "$PATCH_NOBINARY" ] ; then
binaryChanges=`grep -e "Index: .*\.a" -e "Index: .*\.dll" -e "Index: .*\.dylib" $PATCH`
if [ "x$binaryChanges" != "x" ]
then
binaryChanges=`echo "$binaryChanges" | sed 's/Index: //g'`
echo "Patch has binary files which need to be updated manually."
echo
echo "$binaryChanges"
echo
filterdiff -x "*.a" -x "*.dll" -x "*.dylib" $PATCH > $PATCH_NOBINARY
fi
binaryChanges=`grep -e "Index: .*\.a" -e "Index: .*\.dll" -e "Index: .*\.dylib" $PATCH`
if [ "x$binaryChanges" != "x" ]
then
binaryChanges=`echo "$binaryChanges" | sed 's/Index: //g'`
echo "Patch has binary files which need to be manually updated."
echo "You need to manually remove their diff sections from patch too."
echo
echo "$binaryChanges"
echo
# filter diff creates a broken patch
#if [ ! -f "$PATCH_NOBINARY" ] ; then
# filterdiff -x "*.a" -x "*.dll" -x "*.dylib" $PATCH > $PATCH_NOBINARY
#fi
fi