Added --no-backup-if-mismatch to the patchrepo and removepatch functions to avoid creating a .orig file
@@ -232,13 +232,13 @@ if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] ; then
fi
if [ "$applypatch" == "yes" ] ; then
echo "Applying patch $patchfile to $patchdir"
- patch -p1 <$patchfile
+ patch -p1 --no-backup-if-mismatch <$patchfile
fi
fi
}
function removepatch(){
-if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] && [ "AOMP_STANDALONE_BUILD != 1" ] ; then
+if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] && [ "$AOMP_STANDALONE_BUILD" != 1 ] ; then
cd $patchdir
echo "Testing reverse patch $patchfile to $patchdir"
reversepatch="yes"
@@ -250,7 +250,7 @@ if [ "$AOMP_APPLY_ROCM_PATCHES" == 1 ] && [ "AOMP_STANDALONE_BUILD != 1" ] ; the
fi
if [ "$reversepatch" == "yes" ] ; then
echo "Reversing patch $patchfile to $patchdir"
- patch -p1 -R -t <$patchfile
+ patch -p1 -R -t --no-backup-if-mismatch <$patchfile
fi
fi
}
