summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/po
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-03-29 16:20:30 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:18 +0200
commit55330d5547a8ec7848309fc14c6d2ddaf5f78dca (patch)
tree81e1b017d15944d39daa73b2d0795157b8df6ca1 /gettext-runtime/po
parentd3dadca327ce84419829350cb1385b274d60cfe1 (diff)
downloadexternal_gettext-55330d5547a8ec7848309fc14c6d2ddaf5f78dca.zip
external_gettext-55330d5547a8ec7848309fc14c6d2ddaf5f78dca.tar.gz
external_gettext-55330d5547a8ec7848309fc14c6d2ddaf5f78dca.tar.bz2
Native Woe32/MSVC support.
Diffstat (limited to 'gettext-runtime/po')
-rw-r--r--gettext-runtime/po/ChangeLog6
-rwxr-xr-xgettext-runtime/po/Makefile.msvc.sh87
-rw-r--r--gettext-runtime/po/Rules-msvc14
3 files changed, 107 insertions, 0 deletions
diff --git a/gettext-runtime/po/ChangeLog b/gettext-runtime/po/ChangeLog
index d8f8375..f9cdbf7 100644
--- a/gettext-runtime/po/ChangeLog
+++ b/gettext-runtime/po/ChangeLog
@@ -1,3 +1,9 @@
+2003-03-17 Bruno Haible <bruno@clisp.org>
+
+ Native Woe32/MSVC support.
+ * Makefile.msvc.sh: New file.
+ * Rules-msvc: New file.
+
2003-03-29 Bruno Haible <bruno@clisp.org>
* id.po: Update from Tedi Heriyanto <tedi_h@gmx.net>.
diff --git a/gettext-runtime/po/Makefile.msvc.sh b/gettext-runtime/po/Makefile.msvc.sh
new file mode 100755
index 0000000..6e43ffc
--- /dev/null
+++ b/gettext-runtime/po/Makefile.msvc.sh
@@ -0,0 +1,87 @@
+#!/bin/sh
+# Creates Makefile.msvc.
+domain=$1
+catalogs=$2
+
+cat <<\EOF
+# -*- Makefile -*- for po subdirectory
+
+#### Start of system configuration section. ####
+
+# Directories used by "make":
+srcdir = .
+
+# Directories used by "make install":
+prefix = c:\usr
+datadir = $(prefix)\share
+localedir = $(datadir)\locale
+
+# Programs used by "make":
+RM = -del
+
+# Programs used by "make install":
+INSTALL = copy
+INSTALL_PROGRAM = copy
+INSTALL_DATA = copy
+
+#### End of system configuration section. ####
+
+SHELL = /bin/sh
+
+all :
+
+install : all force
+ -mkdir $(prefix)
+ -mkdir $(datadir)
+ -mkdir $(localedir)
+EOF
+for cat in $catalogs; do
+ cat=`basename $cat`
+ lang=`echo $cat | sed -e 's/\.gmo$//'`
+cat <<EOF
+ -mkdir \$(localedir)\\${cat}
+ -mkdir \$(localedir)\\${cat}\\LC_MESSAGES
+ \$(INSTALL_DATA) ${cat}.gmo \$(localedir)\\${cat}\\LC_MESSAGES\\${domain}.mo
+EOF
+done
+cat <<\EOF
+
+installdirs : force
+ -mkdir $(prefix)
+ -mkdir $(datadir)
+ -mkdir $(localedir)
+EOF
+for cat in $catalogs; do
+ cat=`basename $cat`
+ lang=`echo $cat | sed -e 's/\.gmo$//'`
+cat <<EOF
+ -mkdir \$(localedir)\\${cat}
+ -mkdir \$(localedir)\\${cat}\\LC_MESSAGES
+EOF
+done
+cat <<\EOF
+
+uninstall : force
+EOF
+for cat in $catalogs; do
+ cat=`basename $cat`
+ lang=`echo $cat | sed -e 's/\.gmo$//'`
+cat <<EOF
+ \$(RM) \$(localedir)\\${cat}\\LC_MESSAGES\\${domain}.mo
+EOF
+done
+cat <<\EOF
+
+check : all
+
+mostlyclean : clean
+
+clean : force
+ $(RM) core
+
+distclean : clean
+
+maintainer-clean : distclean
+
+force :
+EOF
diff --git a/gettext-runtime/po/Rules-msvc b/gettext-runtime/po/Rules-msvc
new file mode 100644
index 0000000..bac93f9
--- /dev/null
+++ b/gettext-runtime/po/Rules-msvc
@@ -0,0 +1,14 @@
+# Special Makefile rules for generating a Makefile.msvc.
+
+DISTFILES.extra3 = Rules-msvc Makefile.msvc.sh Makefile.msvc
+
+dist distdir: $(srcdir)/Makefile.msvc
+
+# Makefile.msvc needs to be redone when LINGUAS has changed. When rebuilding
+# it, ensure that we use the updated value of CATALOGS.
+$(srcdir)/Makefile.msvc: LINGUAS
+ $(MAKE) Makefile
+ $(MAKE) -f Makefile Makefile.msvc-update
+
+Makefile.msvc-update:
+ $(SHELL) $(srcdir)/Makefile.msvc.sh $(DOMAIN) '$(GMOFILES)' > $(srcdir)/Makefile.msvc