[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCHv2 26/26] [ng] texi: remove some crufty code to supp
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCHv2 26/26] [ng] texi: remove some crufty code to support obsolete environment |
Date: |
Sun, 17 Jun 2012 11:19:52 +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 <address@hidden>
---
The code flow implemented by the old patch was botched and backwards.
Please consider the previous patch dropped in favour of this one.
Sorry for the confusion,
Stefano
lib/am/texi-vers.am | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/lib/am/texi-vers.am b/lib/am/texi-vers.am
index ec2f366..2e6a147 100644
--- a/lib/am/texi-vers.am
+++ b/lib/am/texi-vers.am
@@ -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%)
- address@hidden -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%
--
1.7.9.5
- [Automake-NG] [PATCH 22/26] [ng] texi: simplify handle_texinfo_source by assuming '.info' suffix ..., (continued)
- [Automake-NG] [PATCH 22/26] [ng] texi: simplify handle_texinfo_source by assuming '.info' suffix ..., Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 23/26] [ng] automake: merge handle_texinfo_source() -> handle_texinfo_helper(), Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 20/26] [ng] texi: in texi-spec.am, assume suffix for info files is always '.info', Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 24/26] [ng] texi: "de-prettify" makeinfo command line, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 25/26] [ng] texi: move more code from automake to Makefile, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 26/26] [ng] texi: remove some crufty code to support obsolete environment, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 27/26] [ng] tests: rename silent8.sh -> silent-info.sh, Stefano Lattarini, 2012/06/17
- [Automake-NG] [PATCH 28/26] [ng] coverage: texinfo silent rules with a subdir texinfo file, Stefano Lattarini, 2012/06/17
- [Automake-NG] [PATCH 29/26] [ng] texi: drop support for '.txi' and '.texinfo' suffixes, Stefano Lattarini, 2012/06/17