Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # XCDS: script provides possibility to create diff which satisfies our format
- # result: diff between current master HEAD and commit, corresponding to original Apple version
- # NOTE: should be placed at the same level as cloned mDNSResponder-xcds repo
- PatchName=`pwd`/diff.diff
- # DO NOT MODIFY: ID of commit, which contains original version
- OLDC=5a6b12c7fbb03d483cf12f61fa25393b7fb81cf8
- cd mDNSResponder-xcds
- NEWC=`git rev-parse HEAD`
- git diff -z --minimal -U3 --no-prefix ${OLDC}..${NEWC} > ${PatchName}
- echo "*** Cleanup patch..."
- sed -i -e '/^diff */d' ${PatchName}
- sed -i -e '/^index */d' ${PatchName}
- sed -i -e '/^new file */d' ${PatchName}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement