From 4ad351842c09f0c79bc826d14cebc603f2b99210 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Sat, 29 Nov 2003 21:02:59 +0000 Subject: [PATCH] Use the return status direct in stamp-forms... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8159 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 5 +++++ src/frontends/xforms/Makefile.am | 12 ++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 0c2c769f7f..496d7fc891 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2003-11-29 Angus Leeming + + * 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 * FormVSpace.C diff --git a/src/frontends/xforms/Makefile.am b/src/frontends/xforms/Makefile.am index c7b7e741ef..ed33a8e390 100644 --- a/src/frontends/xforms/Makefile.am +++ b/src/frontends/xforms/Makefile.am @@ -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 > $@ -- 2.39.2