bug fix
authorTom Tromey <tromey@redhat.com>
Tue, 25 Feb 1997 03:39:09 +0000 (03:39 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 25 Feb 1997 03:39:09 +0000 (03:39 +0000)
lib/am/texi-vers.am
texi-vers.am

index 3c6f3c8..3132204 100644 (file)
@@ -16,6 +16,7 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 @VTEXI@: @MAINT@stamp-@VTI@
+       cp $(srcdir)/stamp-@VTI@ $(srcdir)/@VTEXI@
 
 ## Depend on configure.in so that version number updates cause a
 ## rebuild.
@@ -27,9 +28,11 @@ stamp-@VTI@: @TEXI@ $(top_srcdir)/configure.in
 ## Use cp and rm here because some older "mv"s can't move across
 ## filesystems.  Furthermore, GNU "mv" in the AmigaDOS environment
 ## can't handle this.
-       cmp -s @VTI@.tmp $(srcdir)/@VTEXI@ || cp @VTI@.tmp $(srcdir)/@VTEXI@
-       rm @VTI@.tmp
-       echo timestamp > $(srcdir)/stamp-@VTI@
+       if cmp -s @VTI@.tmp $(srcdir)/@VTEXI@; then \
+         rm -f @VTI@.tmp; \
+       else \
+         cp @VTI@.tmp $(srcdir)/stamp-@VTI@; \
+       fi
 
 mostlyclean-@VTI@:
        rm -f @VTI@.tmp
index 3c6f3c8..3132204 100644 (file)
@@ -16,6 +16,7 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 @VTEXI@: @MAINT@stamp-@VTI@
+       cp $(srcdir)/stamp-@VTI@ $(srcdir)/@VTEXI@
 
 ## Depend on configure.in so that version number updates cause a
 ## rebuild.
@@ -27,9 +28,11 @@ stamp-@VTI@: @TEXI@ $(top_srcdir)/configure.in
 ## Use cp and rm here because some older "mv"s can't move across
 ## filesystems.  Furthermore, GNU "mv" in the AmigaDOS environment
 ## can't handle this.
-       cmp -s @VTI@.tmp $(srcdir)/@VTEXI@ || cp @VTI@.tmp $(srcdir)/@VTEXI@
-       rm @VTI@.tmp
-       echo timestamp > $(srcdir)/stamp-@VTI@
+       if cmp -s @VTI@.tmp $(srcdir)/@VTEXI@; then \
+         rm -f @VTI@.tmp; \
+       else \
+         cp @VTI@.tmp $(srcdir)/stamp-@VTI@; \
+       fi
 
 mostlyclean-@VTI@:
        rm -f @VTI@.tmp