]> git.saurik.com Git - bison.git/blobdiff - Makefile.maint
Thinko.
[bison.git] / Makefile.maint
index c3d8b8c983eaa5d3777b7a4a56091144a65ae3cf..e5f5af21747f8c9e7467016b2a1d94526c698a0e 100644 (file)
@@ -77,12 +77,13 @@ cvs-tag-check:
        else :; fi
 
 cvs-diff-check:
-       if cvs diff | grep -v '^?' >cvs-diffs; then             \
-         rm cvs-diffs;                                         \
-       else                                                    \
+       cvs diff | grep -v '^?' >cvs-diffs
+       if grep . cvs-diff >dev/null; then                      \
          echo "Some files are locally modified:" 1>&2;         \
          cat cvs-diffs;                                        \
          exit 1;                                               \
+       else                                                    \
+         rm cvs-diffs;                                         \
        fi
 
 cvs-check: cvs-diff-check cvs-tag-check