]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] texi: remove some crufty code to support obsolete environment
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 16 Jun 2012 21:18:13 +0000 (23:18 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 17 Jun 2012 09:14:50 +0000 (11:14 +0200)
* lib/am/texi-vers.am (%STAMPVTI%): We don't really care anymore about
older systems whose 'mv' program can't move across file systems, nor do
we care about past problems of GNU mv in the AmigaDOS environment.  So
simplify the code accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/texi-vers.am

index ec2f366ffc0725598aa7cf6e2aa40ba23fbebf1e..2e6a14799be35d7b52c00bb1fd4cf2dfb18cdb31 100644 (file)
@@ -33,13 +33,11 @@ am__dist_common += %VTEXI% %STAMPVTI%
        echo "@set UPDATED-MONTH $$2 $$3"; \
        echo "@set EDITION $(VERSION)"; \
        echo "@set VERSION $(VERSION)") > %VTI%.tmp
-## 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 %VTEXI% \
-         || (echo "Updating %VTEXI%"; \
-             cp %VTI%.tmp %VTEXI%)
-       -@rm -f %VTI%.tmp
+       @if cmp -s %VTI%.tmp %VTEXI%; then \
+         rm -f %VTI%.tmp; \
+       else \
+         echo "Updating %VTEXI%" && mv -f %VTI%.tmp %VTEXI%; \
+       fi;
        @cp %VTEXI% $@
 
 mostlyclean-am: mostlyclean-%VTI%