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

View file

@ -19,6 +19,11 @@ hook() {
done
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}"
done
}