]> granicus.if.org Git - docbook-dsssl/commitdiff
Added a module for syncing up with latest CLDR CVS snapshot.
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 14 Oct 2005 07:28:37 +0000 (07:28 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 14 Oct 2005 07:28:37 +0000 (07:28 +0000)
contrib/.cvsdir/Makefile [new file with mode: 0644]
contrib/.cvsignore [new file with mode: 0644]
contrib/Makefile [new file with mode: 0644]

diff --git a/contrib/.cvsdir/Makefile b/contrib/.cvsdir/Makefile
new file mode 100644 (file)
index 0000000..2e37aa9
--- /dev/null
@@ -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 (file)
index 0000000..da3cd12
--- /dev/null
@@ -0,0 +1,7 @@
+.CVS_REAL
+ChangeLog
+NEWS
+common
+docs
+dtd
+tools
diff --git a/contrib/Makefile b/contrib/Makefile
new file mode 100644 (file)
index 0000000..474d38c
--- /dev/null
@@ -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