Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # XCDS: script provides possibility to create diff which satisfies our format
  4. # result: diff between current master HEAD and commit, corresponding to original Apple version
  5. # NOTE: should be placed at the same level as cloned mDNSResponder-xcds repo
  6.  
  7. PatchName=`pwd`/diff.diff
  8.  
  9. # DO NOT MODIFY: ID of commit, which contains original version
  10. OLDC=5a6b12c7fbb03d483cf12f61fa25393b7fb81cf8
  11.  
  12. cd mDNSResponder-xcds
  13. NEWC=`git rev-parse HEAD`
  14. git diff -z --minimal -U3 --no-prefix ${OLDC}..${NEWC} > ${PatchName}
  15.  
  16. echo "*** Cleanup patch..."
  17. sed -i -e '/^diff */d' ${PatchName}
  18. sed -i -e '/^index */d' ${PatchName}
  19. sed -i -e '/^new file */d' ${PatchName}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement