diff options
Diffstat (limited to 'tools/patcheck')
-rwxr-xr-x | tools/patcheck | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/patcheck b/tools/patcheck index 521138ae93..de20500f10 100755 --- a/tools/patcheck +++ b/tools/patcheck @@ -1,5 +1,13 @@ #!/bin/sh +# if no argument provided, write stdin to a file and re-run the script +if [ $# = 0 ]; then + cat > patcheck.stdout + $0 patcheck.stdout + rm -f patcheck.stdout + exit +fi + TMP=patcheck.tmp OPT="-nH" #FILES=`grep '^+++' $* | sed 's/+++ //g'` |