aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2015-01-06 21:44:01 +0200
committerSergey Poznyakoff <gray@gnu.org>2015-01-06 21:44:01 +0200
commit5dfd8dd432785ca8d8b6d2c11bac9e110feda52b (patch)
treebfe12bf71b50e7916ab5b957ba216def8c41cbf9
parentc5e668cfd92985ff7e3e4be7c6be8c3ea3e6d57f (diff)
downloadellinika-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--.gitmodules3
-rw-r--r--Makefile.am4
-rwxr-xr-xautogen.sh8
-rw-r--r--configure.ac9
m---------gint0
-rw-r--r--scm/Makefile.am24
-rw-r--r--scm/dictrans.scm3
-rw-r--r--scm/neatrans.scm5
-rw-r--r--src/cgi-bin/Makefile.am48
-rw-r--r--src/ellinika/Makefile.am60
-rw-r--r--src/ellinika/conjugator.scm3
-rw-r--r--src/ellinika/elmorph.c10
-rw-r--r--src/ellinika/i18n.scm1
-rw-r--r--xml/Makefile.am24
-rw-r--r--xml/pl/Makefile.am4
-rw-r--r--xml/ru/Makefile.am4
-rw-r--r--xml/uk/Makefile.am4
17 files changed, 116 insertions, 98 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
@@ -15,9 +15,9 @@
15# along with this program. If not, see <http://www.gnu.org/licenses/>. 15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16
17AUTOMAKE_OPTIONS = gnits 1.8 17AUTOMAKE_OPTIONS = gnits 1.8
18ACLOCAL_AMFLAGS = -I m4 -I am 18ACLOCAL_AMFLAGS = -I m4 -I am -I gint
19 19
20SUBDIRS=src elisp data scm xml html-files po 20SUBDIRS=gint src elisp data scm xml html-files po
21 21
22htmldir = $(HTMLDIR) 22htmldir = $(HTMLDIR)
23 23
diff --git a/autogen.sh b/autogen.sh
index 1f3cdfc..c63ecd6 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,13 @@
1#! /bin/sh 1#! /bin/sh
2 2
3git submodule init
4git submodule update
5
6cat > ChangeLog <<EOT
7This file is a placeholder. It will be replaced with the actual ChangeLog
8by make.
9EOT
10
3if [ ! -d html ]; then 11if [ ! -d html ]; then
4 mkdir html 12 mkdir html
5fi 13fi
diff --git a/configure.ac b/configure.ac
index 540b4f6..e545dfa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
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#
4# Ellinika is free software; you can redistribute it and/or modify 4# Ellinika is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
17 17
18AC_PREREQ(2.61) 18AC_PREREQ(2.61)
19 19
20AC_REVISION(2015-01-06 13:50:03 gray) 20AC_REVISION(2015-01-06 14:33:57 gray)
21AC_INIT(ellinika, 1.99.99, [gray+ellinika@gnu.org.ua]) 21AC_INIT(ellinika, 1.99.99, [gray+ellinika@gnu.org.ua])
22AC_CONFIG_SRCDIR(src/cgi-bin/dict.scm4) 22AC_CONFIG_SRCDIR(src/cgi-bin/dict.scm4)
23AC_CONFIG_AUX_DIR([build-aux]) 23AC_CONFIG_AUX_DIR([build-aux])
@@ -41,8 +41,7 @@ AM_GNU_GETTEXT([external], [need-ngettext])
41 41
42AM_GNU_GETTEXT_VERSION([0.17]) 42AM_GNU_GETTEXT_VERSION([0.17])
43 43
44MU_CHECK_GUILE(,, 44GINT_INIT(,[nodoc])
45 [AC_MSG_ERROR([You need Guile 1.8 or newer])])
46 45
47RA_CHECK_LIB(mysqlclient, 46RA_CHECK_LIB(mysqlclient,
48 mysql_real_connect, 47 mysql_real_connect,
@@ -53,6 +52,7 @@ RA_CHECK_LIB(mysqlclient,
53 52
54LIBS="$LIBS $ra_cv_lib_mysqlclient" 53LIBS="$LIBS $ra_cv_lib_mysqlclient"
55 54
55
56## ************** 56## **************
57## Directories 57## Directories
58## ************** 58## **************
@@ -133,6 +133,7 @@ AC_SUBST(AUTOGENERATED,
133 133
134AC_CONFIG_FILES(Makefile 134AC_CONFIG_FILES(Makefile
135 .htaccess 135 .htaccess
136 gint/Makefile
136 src/Makefile 137 src/Makefile
137 src/cgi-bin/Makefile 138 src/cgi-bin/Makefile
138 src/ellinika/Makefile 139 src/ellinika/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,5 +1,5 @@
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#
4# Ellinika is free software; you can redistribute it and/or modify 4# Ellinika is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
@@ -20,20 +20,20 @@ CLEANFILES=dictrans.sed dictrans neatrans verbop
20EXTRA_DIST=dictrans.scm 20EXTRA_DIST=dictrans.scm
21 21
22dictrans.sed: Makefile 22dictrans.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
29dictrans: $(srcdir)/dictrans.scm dictrans.sed 35dictrans: $(srcdir)/dictrans.scm dictrans.sed
30 sed -f dictrans.sed $(srcdir)/dictrans.scm > $@
31 chmod +x $@
32 36
33neatrans: $(srcdir)/neatrans.scm dictrans.sed 37neatrans: $(srcdir)/neatrans.scm dictrans.sed
34 sed -f dictrans.sed $(srcdir)/neatrans.scm > $@
35 chmod +x $@
36 38
37verbop: $(srcdir)/verbop.scm dictrans.sed 39verbop: $(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
@@ -90,7 +90,8 @@
90 (ellinika xlat) 90 (ellinika xlat)
91 (ice-9 getopt-long)) 91 (ice-9 getopt-long))
92 92
93(use-syntax (ice-9 syncase)) 93(if (= (string->number (major-version)) 1)
94 (use-modules (ice-9 syncase)))
94 95
95(define compile-only #f) 96(define compile-only #f)
96(define cleanup-option #f) 97(define cleanup-option #f)
diff --git a/scm/neatrans.scm b/scm/neatrans.scm
index e92e585..333453f 100644
--- a/scm/neatrans.scm
+++ b/scm/neatrans.scm
@@ -2,7 +2,7 @@
2=AUTOGENERATED= 2=AUTOGENERATED=
3!# 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;;;;
7;;;; Ellinika is free software; you can redistribute it and/or modify 7;;;; Ellinika is free software; you can redistribute it and/or modify
8;;;; it under the terms of the GNU General Public License as published by 8;;;; it under the terms of the GNU General Public License as published by
@@ -37,7 +37,8 @@
37 (ellinika xlat) 37 (ellinika xlat)
38 (ice-9 getopt-long)) 38 (ice-9 getopt-long))
39 39
40(use-syntax (ice-9 syncase)) 40(if (= (string->number (major-version)) 1)
41 (use-modules (ice-9 syncase)))
41 42
42(define compile-only #f) 43(define compile-only #f)
43(define cleanup-option #f) 44(define cleanup-option #f)
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,5 +1,5 @@
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#
4# Ellinika is free software; you can redistribute it and/or modify 4# Ellinika is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
@@ -20,34 +20,36 @@ EXTRA_DIST=dict.scm4 nea.scm4 conj.scm4
20CLEANFILES=dict.m4 dict.scm nea.scm dict.cgi nea.cgi conj.cgi 20CLEANFILES=dict.m4 dict.scm nea.scm dict.cgi nea.cgi conj.cgi
21 21
22dict.m4: Makefile 22dict.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