]> git.lyx.org Git - features.git/commitdiff
Use the return status direct in stamp-forms...
authorAngus Leeming <leeming@lyx.org>
Sat, 29 Nov 2003 21:02:59 +0000 (21:02 +0000)
committerAngus Leeming <leeming@lyx.org>
Sat, 29 Nov 2003 21:02:59 +0000 (21:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8159 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/Makefile.am

index 0c2c769f7f38cd7e81ebf125b70b3e3de783e4e9..496d7fc89187591f17cb05947fc155385f652374 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-29  Angus Leeming  <leeming@lyx.org>
+
+       * Makefile.am (stamp-forms, stamp-xpm): don't use "if test return
+       status; then... fi" but rather use the return status direct.
+
 2003-11-29  Angus Leeming  <leeming@lyx.org>
 
        * FormVSpace.C
index c7b7e741ef96f0c3b059a950914898a95d859925..ed33a8e3908630bbda90e830633b1b22a6be47e6 100644 (file)
@@ -184,22 +184,18 @@ lyx_forms.h: stamp-forms
        @:
 
 stamp-forms: lyx_forms.h-tmp
-       if cmp -s $< lyx_forms.h ; then \
-               : ;\
-       else \
+       cmp -s $< lyx_forms.h || {
                rm -f lyx_forms.h ;\
                cp $< lyx_forms.h ;\
-       fi
+       }
        echo timestamp > $@
 
 lyx_xpm.h: stamp-xpm
        @:
 
 stamp-xpm: lyx_xpm.h-tmp
-       if cmp -s $< lyx_xpm.h ; then \
-               : ;\
-       else \
+       if cmp -s $< lyx_xpm.h || {
                rm -f lyx_xpm.h ;\
                cp $< lyx_xpm.h ;\
-       fi
+       }
        echo timestamp > $@