llvm.org GIT mirror llvm / cb04809
Reverted back to using OR for cmp/mv operations for lex/yacc output. The shell AND/OR operators short-circuit on command success/failure, which is the inverse of exit status (i.e. 0 means success, non-zero means failure). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7616 91177308-0d34-0410-b5e6-96231b3b80d8 John Criswell 16 years ago
2 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
772772 $(SED) 's/void \*yy_flex_realloc/inline void *yy_flex_realloc/' | \
773773 $(SED) 's/#define YY_BUF_SIZE 16384/#define YY_BUF_SIZE (16384*64)/' \
774774 > $@.tmp
775 $(VERB) cmp $@ $@.tmp > /dev/null && ${MV} -f $@.tmp $@
775 $(VERB) cmp $@ $@.tmp > /dev/null || ${MV} -f $@.tmp $@
776776 @# remove the output of flex if it didn't get moved over...
777777 @rm -f $@.tmp
778778
782782 %.cpp %.h : %.y
783783 @echo Bison\'ing $<...
784784 $(VERB) $(BISON) -v -d -p $(<:%Parser.y=%) $*.y
785 $(VERB) cmp $*.tab.c $*.cpp > /dev/null && ${MV} -f $*.tab.c $*.cpp
786 $(VERB) cmp $*.tab.h $*.h > /dev/null && ${MV} -f $*.tab.h $*.h
785 $(VERB) cmp $*.tab.c $*.cpp > /dev/null || ${MV} -f $*.tab.c $*.cpp
786 $(VERB) cmp $*.tab.h $*.h > /dev/null || ${MV} -f $*.tab.h $*.h
787787 @# If the files were not updated, don't leave them lying around...
788788 @rm -f $*.tab.c $*.tab.h
789789
772772 $(SED) 's/void \*yy_flex_realloc/inline void *yy_flex_realloc/' | \
773773 $(SED) 's/#define YY_BUF_SIZE 16384/#define YY_BUF_SIZE (16384*64)/' \
774774 > $@.tmp
775 $(VERB) cmp $@ $@.tmp > /dev/null && ${MV} -f $@.tmp $@
775 $(VERB) cmp $@ $@.tmp > /dev/null || ${MV} -f $@.tmp $@
776776 @# remove the output of flex if it didn't get moved over...
777777 @rm -f $@.tmp
778778
782782 %.cpp %.h : %.y
783783 @echo Bison\'ing $<...
784784 $(VERB) $(BISON) -v -d -p $(<:%Parser.y=%) $*.y
785 $(VERB) cmp $*.tab.c $*.cpp > /dev/null && ${MV} -f $*.tab.c $*.cpp
786 $(VERB) cmp $*.tab.h $*.h > /dev/null && ${MV} -f $*.tab.h $*.h
785 $(VERB) cmp $*.tab.c $*.cpp > /dev/null || ${MV} -f $*.tab.c $*.cpp
786 $(VERB) cmp $*.tab.h $*.h > /dev/null || ${MV} -f $*.tab.h $*.h
787787 @# If the files were not updated, don't leave them lying around...
788788 @rm -f $*.tab.c $*.tab.h
789789