changeset 89813:55516d80d735

(install): Copy updated files only.
author Kenichi Handa <handa@m17n.org>
date Thu, 12 Feb 2004 07:25:52 +0000
parents beedac339948
children bd285ab281c3
files admin/charsets/Makefile
diffstat 1 files changed, 17 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/admin/charsets/Makefile	Tue Feb 10 11:31:44 2004 +0000
+++ b/admin/charsets/Makefile	Thu Feb 12 07:25:52 2004 +0000
@@ -313,9 +313,23 @@
 	# Generating $@...
 	@mapconv $< '/^<.*[ 	]\/x/' GLIBC-1 compact.awk > $@
 
-install: ${CHARSETS} ${TRANS_TABLE}
-	cp ${CHARSETS} ../../etc/charsets
-	cp ${TRANS_TABLE} ../../lisp/international
+install:
+	@for f in ${CHARSETS}; do \
+	  if test -r $$f; then \
+	    if ! cmp -s $$f ../../etc/charsets/$$f; then \
+	      echo updating $$f; \
+	      cp $$f ../../etc/charsets; \
+	    fi; \
+	  fi; \
+	done
+	@for f in ${TRANS_TABLE}; do \
+	  if test -r $$f; then \
+	    if ! cmp -s $$f ../../lisp/international/$$f; then \
+	      echo updating $$f; \
+	      cp $$f ../../lisp/international; \
+	    fi; \
+	  fi; \
+	done
 
 # Clear files that are automatically generated.
 clean: