[Libphidget-cvs-commits] CVS: libphidget Makefile.am,1.6.2.1,1.6.2.2
Status: Alpha
Brought to you by:
jstrohm
From: Vadim T. <vt...@us...> - 2002-09-11 02:31:05
|
Update of /cvsroot/libphidget/libphidget In directory usw-pr-cvs1:/tmp/cvs-serv22591 Modified Files: Tag: INDENT Makefile.am Log Message: Fixed the bug when bad indent rules resulted in all the content files being lost Index: Makefile.am =================================================================== RCS file: /cvsroot/libphidget/libphidget/Makefile.am,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -C2 -d -r1.6.2.1 -r1.6.2.2 *** Makefile.am 10 Sep 2002 03:01:33 -0000 1.6.2.1 --- Makefile.am 11 Sep 2002 02:31:02 -0000 1.6.2.2 *************** *** 18,21 **** --- 18,26 ---- @INDENT@ --ignore-profile --standard-output `@CAT@ ./indent.rules` `@CAT@ ./indent.defs` $$FILE > $$FILE.indent; \ if @TEST@ -n "`@DIFF@ $$FILE $$FILE.indent`" ; then \ + if @TEST@ ! -s $$FILE.indent ; then \ + @ECHO@ "@INDENT@ run resulted in an empty file: $$FILE.indent; most probably the options in ./indent.rules are wrong"; \ + @RM@ $$FILE.indent; \ + exit 1; \ + fi; \ @MV@ $$FILE.indent $$FILE; \ else \ *************** *** 34,37 **** --- 39,47 ---- @INDENT@ --standard-output `@CAT@ ./indent.defs` $$FILE > $$FILE.indent; \ if @TEST@ -n "`@DIFF@ $$FILE $$FILE.indent`" ; then \ + if @TEST@ ! -s $$FILE.indent ; then \ + @ECHO@ "@INDENT@ run resulted in an empty file: $$FILE.indent; most probably the options in ./indent.rules are wrong"; \ + @RM@ $$FILE.indent; \ + exit 1; \ + fi; \ @MV@ $$FILE.indent $$FILE; \ else \ |