more
[metze/wireshark/wip.git] / prepare-pidl-patch
1 #!/bin/bash
2 #
3
4 set -u
5 set -e
6
7 WIRESHARK_COMMIT=$1
8 git format-patch --stdout -1 ${WIRESHARK_COMMIT} | \
9         sed -e 's!\[PATCH\] ! [PATCH] pidl: !g' | \
10         sed -e 's!tools/pidl/!pidl/!g' | \
11         sed -e "s!^---\$!(wireshark commit ${WIRESHARK_COMMIT})\n---!g" | \
12         cat