common/hooks: generate null diffs to the new files itself.

This commit is contained in:
Enno Boland 2014-08-11 19:55:14 +02:00
parent f4544b82a6
commit b713c62413
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ hook() {
done done
fi fi
# generate an empty diff to the new file
newchk=`sha256sum ${newfile} | awk '{ print $1 }'`
xdelta3 -D -R -f -e -s "${newfile}" "${newfile}" \
"${newfile}.${newchk}.vcdiff"
rm -- "${oldfile}" rm -- "${oldfile}"
done done
} }