From: nuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Date: Sat, 22 May 2004 04:26:02 +0000 (+0000)
Subject: Fixed problem of moving a file onto itself when bulding in the src dir.
X-Git-Tag: 0.13.6~699
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc91833b27db54a9d0629dd7c77a1b0e58864611;p=re2c

Fixed problem of moving a file onto itself when bulding in the src dir.
---

diff --git a/Makefile.am b/Makefile.am
index 6fb66385..2b8e3cd2 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,7 @@ rpm-files:	$(bin_PROGRAMS) $(EXTRA_DIST)
 parser.cc:	$(top_srcdir)/parser.y
 	$(YACC) $(YFLAGS) $(top_srcdir)/parser.y
 	mv -f y.tab.c $(top_srcdir)/parser.cc
-	mv -f y.tab.h $(top_srcdir)/y.tab.h
+	if cmp -s y.tab.h $(top_srcdir)/y.tab.h; then :; else mv -f y.tab.h $(top_srcdir)/y.tab.h; fi
 
 scanner.cc: $(top_srcdir)/scanner.re
 	@if test -x ./re2c$(EXEEXT); then \