From 7d5e0ead1a7257c288041bcdbb32bc961f3c1290 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 14 Oct 2005 07:28:37 +0000 Subject: [PATCH] Added a module for syncing up with latest CLDR CVS snapshot. --- contrib/.cvsdir/Makefile | 25 +++++++++++++++++++++++++ contrib/.cvsignore | 7 +++++++ contrib/Makefile | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 contrib/.cvsdir/Makefile create mode 100644 contrib/.cvsignore create mode 100644 contrib/Makefile diff --git a/contrib/.cvsdir/Makefile b/contrib/.cvsdir/Makefile new file mode 100644 index 000000000..2e37aa996 --- /dev/null +++ b/contrib/.cvsdir/Makefile @@ -0,0 +1,25 @@ +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/ diff --git a/contrib/.cvsignore b/contrib/.cvsignore new file mode 100644 index 000000000..da3cd12d8 --- /dev/null +++ b/contrib/.cvsignore @@ -0,0 +1,7 @@ +.CVS_REAL +ChangeLog +NEWS +common +docs +dtd +tools diff --git a/contrib/Makefile b/contrib/Makefile new file mode 100644 index 000000000..474d38c4c --- /dev/null +++ b/contrib/Makefile @@ -0,0 +1,34 @@ +# $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 -- 2.40.0