]> git.saurik.com Git - bison.git/commitdiff
Thinko.
authorAkim Demaille <akim@epita.fr>
Fri, 3 Aug 2001 09:11:12 +0000 (09:11 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 3 Aug 2001 09:11:12 +0000 (09:11 +0000)
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