--- /dev/null
+DATE ?= $(shell date +"%Y-%m-%d")
+
+WGET ?= wget
+WGET_OPTS ?=
+
+BASE_CDLR_URL ?= http://ftp.unicode.org/Public/cldr
+SNAPSHOT_FILENAME ?= cldr-repository-daily.tgz
+
+SNAPSHOT_BASENAME ?= $(basename $(SNAPSHOT_FILENAME))
+ADJUSTED_FILENAME ?= $(SNAPSHOT_BASENAME).$(DATE).tgz
+
+all: cldr
+
+$(ADJUSTED_FILENAME):
+ $(WGET) $(BASE_CDLR_URL)/$(SNAPSHOT_FILENAME)
+ tar xvfz $(SNAPSHOT_FILENAME) && $(RM) $(SNAPSHOT_BASENAME).*.tgz
+ mv $(SNAPSHOT_FILENAME) $@
+
+cldr: $(ADJUSTED_FILENAME)
+ $(RM) -r CVSROOT/ cldr/
+ tar xvfz $<
+
+clean:
+ $(RM) -r cldr/ CVSROOT/
+ $(RM) -r $(ADJUSTED_FILENAME) cldr/ CVSROOT/
--- /dev/null
+# $Id$
+
+include ../../cvstools/Makefile.incl
+
+CLDR_CVS_MODULES ?= common docs dtd tools
+
+CLDR_CVS_DIR = .cvsdir
+
+CLDR_CVS_PATH = $(shell readlink -f $(CLDR_CVS_DIR))
+
+CVS ?= cvs
+CVS_OPTS ?=
+
+all: NEWS
+
+$(CLDR_CVS_DIR)/cldr:
+ $(MAKE) -C $(CLDR_CVS_DIR)
+
+NEWS: $(CLDR_CVS_DIR)/cldr
+ mv CVS .CVS_REAL
+ (cd ..; $(CVS) $(CVS_OPTS) -d $(CLDR_CVS_PATH) co cldr)
+ $(CVS2LOG) -w
+ touch ChangeLog
+ $(MERGELOGS) -v NONE > $@
+ find . -name CVS -type d | xargs $(RM) -r
+ mv .CVS_REAL CVS
+
+clean:
+ $(RM) -r $(CLDR_CVS_MODULES)
+ $(RM) ChangeLog
+ $(RM) NEWS
+
+maintainer-clean: clean
+ $(MAKE) -C $(CLDR_CVS_DIR) clean