Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This strips out the benign changes of QT_HEADER and (c)2013 from the diffs
- BEGIN { useful = 0; output="";
- ignore["-QT_BEGIN_HEADER"] = 1;
- ignore["-QT_END_HEADER"] = 1;
- ignore["-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies)."] = 1;
- ignore["+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies)."] = 1;
- }
- /^-[^-]/ { if (!($0 in ignore)) useful = useful + 1 }
- /^+[^+]/ { if (!($0 in ignore)) useful = useful + 1 }
- /^diff/ { if (useful > 0) { print useful output }; useful = 0; output="" }
- {output = (output "\n" $0)} #records all lines
- END { if (useful > 0) print output}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement