diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2015-01-06 21:44:01 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2015-01-06 21:44:01 +0200 |
commit | 5dfd8dd432785ca8d8b6d2c11bac9e110feda52b (patch) | |
tree | bfe12bf71b50e7916ab5b957ba216def8c41cbf9 | |
parent | c5e668cfd92985ff7e3e4be7c6be8c3ea3e6d57f (diff) | |
download | ellinika-5dfd8dd432785ca8d8b6d2c11bac9e110feda52b.tar.gz ellinika-5dfd8dd432785ca8d8b6d2c11bac9e110feda52b.tar.bz2 |
Update for Guile 2.0
* .gitmodules: New file
* gint: New module.
* Makefile.am (ACLOCAL_AMFLAGS, SUBDIRS): Add gint
* autogen.sh: Create a placeholder for ChangeLog.
* configure.ac: Add gint.
* scm/Makefile.am: Add silent rule magic.
* src/cgi-bin/Makefile.am: Likewise.
* src/ellinika/Makefile.am: Likewise.
* xml/Makefile.am: Likewise.
* scm/dictrans.scm: Load (ice-9 syncase) only for Guile 1.x
* scm/neatrans.scm: Likewise.
* src/ellinika/conjugator.scm: Likewise.
* src/ellinika/elmorph.c (elstr)<phoneme_count,nsyl>: Change type
to size_t.
* xml/pl/Makefile.am: Force UTF-8 locale when building html.
Add silent rule magic.
* xml/ru/Makefile.am: Likewise.
* xml/uk/Makefile.am: Likewise.
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile.am | 4 | ||||
-rwxr-xr-x | autogen.sh | 8 | ||||
-rw-r--r-- | configure.ac | 9 | ||||
m--------- | gint | 0 | ||||
-rw-r--r-- | scm/Makefile.am | 24 | ||||
-rw-r--r-- | scm/dictrans.scm | 3 | ||||
-rw-r--r-- | scm/neatrans.scm | 5 | ||||
-rw-r--r-- | src/cgi-bin/Makefile.am | 48 | ||||
-rw-r--r-- | src/ellinika/Makefile.am | 62 | ||||
-rw-r--r-- | src/ellinika/conjugator.scm | 3 | ||||
-rw-r--r-- | src/ellinika/elmorph.c | 10 | ||||
-rw-r--r-- | src/ellinika/i18n.scm | 1 | ||||
-rw-r--r-- | xml/Makefile.am | 24 | ||||
-rw-r--r-- | xml/pl/Makefile.am | 4 | ||||
-rw-r--r-- | xml/ru/Makefile.am | 4 | ||||
-rw-r--r-- | xml/uk/Makefile.am | 4 |
17 files changed, 117 insertions, 99 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7c369d4 --- /dev/null +++ b/.gitmodules | |||
@@ -0,0 +1,3 @@ | |||
1 | [submodule "gint"] | ||
2 | path = gint | ||
3 | url = git://git.gnu.org.ua/gint.git | ||
diff --git a/Makefile.am b/Makefile.am index 678c978..521b3e0 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -17,5 +17,5 @@ | |||
17 | AUTOMAKE_OPTIONS = gnits 1.8 | 17 | AUTOMAKE_OPTIONS = gnits 1.8 |
18 | ACLOCAL_AMFLAGS = -I m4 -I am | 18 | ACLOCAL_AMFLAGS = -I m4 -I am -I gint |
19 | 19 | ||
20 | SUBDIRS=src elisp data scm xml html-files po | 20 | SUBDIRS=gint src elisp data scm xml html-files po |
21 | 21 | ||
@@ -2,2 +2,10 @@ | |||
2 | 2 | ||
3 | git submodule init | ||
4 | git submodule update | ||
5 | |||
6 | cat > ChangeLog <<EOT | ||
7 | This file is a placeholder. It will be replaced with the actual ChangeLog | ||
8 | by make. | ||
9 | EOT | ||
10 | |||
3 | if [ ! -d html ]; then | 11 | if [ ! -d html ]; then |
diff --git a/configure.ac b/configure.ac index 540b4f6..e545dfa 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,3 +1,3 @@ | |||
1 | # This file is part of Ellinika -*- autoconf -*- | 1 | # This file is part of Ellinika -*- autoconf -*- |
2 | # Copyright (C) 2004, 2005, 2007, 2008, 2010 Sergey Poznyakoff | 2 | # Copyright (C) 2004, 2005, 2007, 2008, 2010, 2015 Sergey Poznyakoff |
3 | # | 3 | # |
@@ -19,3 +19,3 @@ AC_PREREQ(2.61) | |||
19 | 19 | ||
20 | AC_REVISION(2015-01-06 13:50:03 gray) | 20 | AC_REVISION(2015-01-06 14:33:57 gray) |
21 | AC_INIT(ellinika, 1.99.99, [gray+ellinika@gnu.org.ua]) | 21 | AC_INIT(ellinika, 1.99.99, [gray+ellinika@gnu.org.ua]) |
@@ -43,4 +43,3 @@ AM_GNU_GETTEXT_VERSION([0.17]) | |||
43 | 43 | ||
44 | MU_CHECK_GUILE(,, | 44 | GINT_INIT(,[nodoc]) |
45 | [AC_MSG_ERROR([You need Guile 1.8 or newer])]) | ||
46 | 45 | ||
@@ -55,2 +54,3 @@ LIBS="$LIBS $ra_cv_lib_mysqlclient" | |||
55 | 54 | ||
55 | |||
56 | ## ************** | 56 | ## ************** |
@@ -135,2 +135,3 @@ AC_CONFIG_FILES(Makefile | |||
135 | .htaccess | 135 | .htaccess |
136 | gint/Makefile | ||
136 | src/Makefile | 137 | src/Makefile |
diff --git a/gint b/gint new file mode 160000 | |||
Subproject fd86bf7d44b0c970771830692ae7491447ebe8b | |||
diff --git a/scm/Makefile.am b/scm/Makefile.am index 481676f..73b3e84 100644 --- a/scm/Makefile.am +++ b/scm/Makefile.am | |||
@@ -1,3 +1,3 @@ | |||
1 | # This file is part of Ellinika project. | 1 | # This file is part of Ellinika project. |
2 | # Copyright (C) 2004, 2005, 2007 Sergey Poznyakoff | 2 | # Copyright (C) 2004, 2005, 2007, 2015 Sergey Poznyakoff |
3 | # | 3 | # |
@@ -22,18 +22,18 @@ EXTRA_DIST=dictrans.scm | |||
22 | dictrans.sed: Makefile | 22 | dictrans.sed: Makefile |
23 | echo 's,=GUILE_BINDIR=,$(GUILE_BINDIR),' > $@ | 23 | $(AM_V_GEN){ \ |
24 | echo 's,=GUILE_SITE=,@GUILE_SITE@,' >> $@ | 24 | echo 's,=GUILE_BINDIR=,$(GUILE_BINDIR),'; \ |
25 | echo 's,\;=GUILE_COMMENT=\;,@GUILE_COMMENT@,' >> $@ | 25 | echo 's,=GUILE_SITE=,@GUILE_SITE@,'; \ |
26 | echo 's,=SYSCONFDIR=,$(sysconfdir),' >> $@ | 26 | echo 's,\;=GUILE_COMMENT=\;,@GUILE_COMMENT@,'; \ |
27 | echo 's,=AUTOGENERATED=,@AUTOGENERATED@,' >> $@ | 27 | echo 's,=SYSCONFDIR=,$(sysconfdir),'; \ |
28 | echo 's,=AUTOGENERATED=,@AUTOGENERATED@,'; \ | ||
29 | } > dictrans.sed | ||
30 | |||
31 | %: %.scm | ||
32 | $(AM_V_GEN)sed -f dictrans.sed $< > $@ | ||
33 | @chmod +x $@ | ||
28 | 34 | ||
29 | dictrans: $(srcdir)/dictrans.scm dictrans.sed | 35 | dictrans: $(srcdir)/dictrans.scm dictrans.sed |
30 | sed -f dictrans.sed $(srcdir)/dictrans.scm > $@ | ||
31 | chmod +x $@ | ||
32 | 36 | ||
33 | neatrans: $(srcdir)/neatrans.scm dictrans.sed | 37 | neatrans: $(srcdir)/neatrans.scm dictrans.sed |
34 | sed -f dictrans.sed $(srcdir)/neatrans.scm > $@ | ||
35 | chmod +x $@ | ||
36 | 38 | ||
37 | verbop: $(srcdir)/verbop.scm dictrans.sed | 39 | verbop: $(srcdir)/verbop.scm dictrans.sed |
38 | sed -f dictrans.sed $(srcdir)/verbop.scm > $@ | ||
39 | chmod +x $@ | ||
diff --git a/scm/dictrans.scm b/scm/dictrans.scm index d76479e..2148929 100644 --- a/scm/dictrans.scm +++ b/scm/dictrans.scm | |||
@@ -92,3 +92,4 @@ | |||
92 | 92 | ||
93 | (use-syntax (ice-9 syncase)) | 93 | (if (= (string->number (major-version)) 1) |
94 | (use-modules (ice-9 syncase))) | ||
94 | 95 | ||
diff --git a/scm/neatrans.scm b/scm/neatrans.scm index e92e585..333453f 100644 --- a/scm/neatrans.scm +++ b/scm/neatrans.scm | |||
@@ -4,3 +4,3 @@ | |||
4 | ;;;; This file is part of Ellinika | 4 | ;;;; This file is part of Ellinika |
5 | ;;;; Copyright (C) 2006, 2007, 2010 Sergey Poznyakoff | 5 | ;;;; Copyright (C) 2006, 2007, 2010, 2015 Sergey Poznyakoff |
6 | ;;;; | 6 | ;;;; |
@@ -39,3 +39,4 @@ | |||
39 | 39 | ||
40 | (use-syntax (ice-9 syncase)) | 40 | (if (= (string->number (major-version)) 1) |
41 | (use-modules (ice-9 syncase))) | ||
41 | 42 | ||
diff --git a/src/cgi-bin/Makefile.am b/src/cgi-bin/Makefile.am index 6b32b42..f085e57 100644 --- a/src/cgi-bin/Makefile.am +++ b/src/cgi-bin/Makefile.am | |||
@@ -1,3 +1,3 @@ | |||
1 | # This file is part of Ellinika project. | 1 | # This file is part of Ellinika project. |
2 | # Copyright (C) 2004, 2005, 2007, 2008 Sergey Poznyakoff | 2 | # Copyright (C) 2004, 2005, 2007, 2008, 2015 Sergey Poznyakoff |
3 | # | 3 | # |
@@ -22,22 +22,24 @@ CLEANFILES=dict.m4 dict.scm nea.scm dict.cgi nea.cgi conj.cgi | |||
22 | dict.m4: Makefile | 22 | dict.m4: Makefile |
23 | echo 'divert(-1)' > $@ | 23 | $(AM_V_GEN){ \ |
24 | echo 'changequote([,])' >> $@ | 24 | echo 'divert(-1)'; \ |
25 | echo 'changecom([;],[' >> $@ | 25 | echo 'changequote([,])'; \ |
26 | echo '])' >> $@ | 26 | echo 'changecom([;],['; \ |
27 | echo 'undefine([format])' >> $@ | 27 | echo '])'; \ |
28 | echo 'define([IFACE], [$(APACHE_IFACE)])' >> $@ | 28 | echo 'undefine([format])'; \ |
29 | echo 'define([SCRIPT_SUFFIX], [@SCRIPT_SUFFIX@])'>>$@ | 29 | echo 'define([IFACE], [$(APACHE_IFACE)])'; \ |
30 | echo 'define([GUILE_BINDIR], [$(GUILE_BINDIR)])' >> $@ | 30 | echo 'define([SCRIPT_SUFFIX], [@SCRIPT_SUFFIX@])'; \ |
31 | echo 'define([GUILE_SITE], [@GUILE_SITE@])' >> $@ | 31 | echo 'define([GUILE_BINDIR], [$(GUILE_BINDIR)])'; \ |
32 | echo 'define([PACKAGE], [$(PACKAGE)])'>> $@ | 32 | echo 'define([GUILE_SITE], [@GUILE_SITE@])'; \ |
33 | echo 'define([PREFIX], [$(prefix)])' >> $@ | 33 | echo 'define([PACKAGE], [$(PACKAGE)])'; \ |
34 | echo 'define([SYSCONFDIR], [$(sysconfdir)])' >> $@ | 34 | echo 'define([PREFIX], [$(prefix)])'; \ |
35 | echo 'define([LOCALEDIR], [$(datadir)/locale])' >> $@ | 35 | echo 'define([SYSCONFDIR], [$(sysconfdir)])'; \ |
36 | echo 'define([HTMLDIR], [$(HTMLDIR)])' >> $@ | 36 | echo 'define([LOCALEDIR], [$(datadir)/locale])'; \ |
37 | echo 'divert(0)dnl' >> $@ | 37 | echo 'define([HTMLDIR], [$(HTMLDIR)])'; \ |
38 | echo 'ifelse(IFACE,[CGI],[#! $(GUILE_BINDIR)/guile -s]' >> $@ | 38 | echo 'divert(0)dnl'; \ |
39 | echo ')dnl' >> $@ | 39 | echo 'ifelse(IFACE,[CGI],[#! $(GUILE_BINDIR)/guile -s]';\ |
40 | echo '@AUTOGENERATED@' >> $@ | 40 | echo ')dnl'; \ |
41 | echo 'ifelse(IFACE,[CGI],!#' >> $@ | 41 | echo '@AUTOGENERATED@'; \ |
42 | echo ')dnl' >> $@ | 42 | echo 'ifelse(IFACE,[CGI],!#'; \ |
43 | echo ')dnl'; \ | ||
44 | } > dict.m4 | ||
43 | 45 | ||
@@ -46,6 +48,6 @@ SUFFIXES = .scm4 .scm .cgi | |||
46 | .scm4.scm: | 48 | .scm4.scm: |
47 | m4 dict.m4 $< > $@ | 49 | $(AM_V_GEN)m4 dict.m4 $< > $@ |
48 | 50 | ||
49 | .scm.cgi: | 51 | .scm.cgi: |
50 | cp $< $@ | 52 | $(AM_V_GEN)cp $< $@ |
51 | 53 | ||
diff --git a/src/ellinika/Makefile.am b/src/ellinika/Makefile.am index 12e0392..5f476ef 100644 --- a/src/ellinika/Makefile.am +++ b/src/ellinika/Makefile.am | |||
@@ -1,3 +1,3 @@ | |||
1 | # This file is part of Ellinika project. | 1 | # This file is part of Ellinika project. |
2 | # Copyright (C) 2004,2006,2007,2008,2011 Sergey Poznyakoff | 2 | # Copyright (C) 2004, 2006-2008, 2011, 2015 Sergey Poznyakoff |
3 | # | 3 | # |
@@ -16,4 +16,4 @@ | |||
16 | 16 | ||
17 | guiledir=$(GUILE_SITE)/$(PACKAGE) | 17 | sitedir=$(GUILE_SITE)/$(PACKAGE) |
18 | guile_DATA=\ | 18 | site_DATA=\ |
19 | xlat.scm\ | 19 | xlat.scm\ |
@@ -29,20 +29,22 @@ guile_DATA=\ | |||
29 | cgi.m4: Makefile | 29 | cgi.m4: Makefile |
30 | echo 'divert(-1)' > $@ | 30 | $(AM_V_GEN){ \ |
31 | echo 'changequote([,])' >> $@ | 31 | echo 'divert(-1)'; \ |
32 | echo 'changecom([;],[' >> $@ | 32 | echo 'changequote([,])'; \ |
33 | echo '])' >> $@ | 33 | echo 'changecom([;],['; \ |
34 | echo 'undefine([format])' >> $@ | 34 | echo '])'; \ |
35 | echo 'define([IFACE],[$(APACHE_IFACE)])' >> $@ | 35 | echo 'undefine([format])'; \ |
36 | echo 'define([SCRIPT_SUFFIX], [@SCRIPT_SUFFIX@])'>>$@ | 36 | echo 'define([IFACE],[$(APACHE_IFACE)])'; \ |
37 | echo 'define([GUILE_BINDIR],[$(GUILE_BINDIR)])' >> $@ | 37 | echo 'define([SCRIPT_SUFFIX], [@SCRIPT_SUFFIX@])'; \ |
38 | echo 'define([GUILE_SITE],[@GUILE_SITE@])' >> $@ | 38 | echo 'define([GUILE_BINDIR],[$(GUILE_BINDIR)])'; \ |
39 | echo 'define([PACKAGE],[$(PACKAGE)])'>> $@ | 39 | echo 'define([GUILE_SITE],[@GUILE_SITE@])'; \ |
40 | echo 'define([PREFIX],[$(prefix)])' & |