aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-09-28 15:47:15 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-09-28 15:47:15 +0000
commit84c9e4d02674b7d26a295058df0854474f679118 (patch)
tree6fb448fdde0006bd5a6b0818c25253f77371d096
parent4bcd6c43f3baf2f566cb98047d50518be1c0831e (diff)
downloadellinika-84c9e4d02674b7d26a295058df0854474f679118.tar.gz
ellinika-84c9e4d02674b7d26a295058df0854474f679118.tar.bz2
Use lingua (xmltools) instead of eXtrans
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@170 941c8c0f-9102-463b-b60b-cd22ce0e6858
-rw-r--r--Makefile.am25
-rwxr-xr-xautogen.sh5
-rw-r--r--configure.ac1
-rw-r--r--xml/Makefile.am47
4 files changed, 67 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index 5006c7b..187cb57 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,13 +1,24 @@
+# This file is part of Ellinika project.
+# Copyright (C) 2004 Sergey Poznyakoff
+#
+# Ellinika is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# Ellinika is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Ellinika; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
AUTOMAKE_OPTIONS = gnits 1.8
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS=cgi-bin data src xml xtrans po
-
-# FIXME
-EXTRANS=python /home/gray/extrans/extrans.py
-EXTRANS_FLAGS=-DBASE_HREF="$(BASE_HREF)" -DTARGET_DIR="$(TARGET_DIR)"
-all-local:
- $(EXTRANS) $(EXTRANS_FLAGS) $(top_srcdir)/lingua.xtrans
+SUBDIRS=cgi-bin data src xml po
htmldir = $(HTMLDIR)
diff --git a/autogen.sh b/autogen.sh
index 92ee54e..230db52 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,8 +3,9 @@
if [ ! -d html ]; then
mkdir html
fi
-if [ ! -d db ]; then
- mkdir db
+if [ ! -d tmp ]; then
+ mkdir tmp
fi
+(cd tmp; for dir in el ru ; do if [ ! -d $dir ]; then mkdir $dir; fi; done)
(cd html; for dir in el ru ; do if [ ! -d $dir ]; then mkdir $dir; fi; done)
autoreconf -f -i -s
diff --git a/configure.ac b/configure.ac
index 17281fc..91525dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,5 +64,4 @@ AC_OUTPUT(Makefile
data/Makefile
src/Makefile
xml/Makefile
- xtrans/Makefile
po/Makefile.in)
diff --git a/xml/Makefile.am b/xml/Makefile.am
index 5d47a4b..358ebdd 100644
--- a/xml/Makefile.am
+++ b/xml/Makefile.am
@@ -1 +1,46 @@
-EXTRA_DIST=ellinika.xml \ No newline at end of file
+# This file is part of Ellinika project.
+# Copyright (C) 2004 Sergey Poznyakoff
+#
+# Ellinika is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# Ellinika is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Ellinika; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+EXTRA_DIST=antonimies.xml\
+ arithmi.xml\
+ arthra.xml\
+ ellinika.el.xml\
+ ellinika.ru.xml\
+ epirrhmata.xml\
+ epitheta.xml\
+ oysiastika.xml\
+ paroimies.xml\
+ rhmata.xml\
+ lingua.conf.in
+
+DISTCLEANFILES=lingua.conf
+CLEANFILES=stamp-lingua conf.sed
+
+conf.sed: Makefile
+ echo 's,%TMPDIR%,$(top_builddir)/tmp,' > conf.sed
+ echo 's,%OUTDIR%,$(top_builddir)/html,' >> conf.sed
+ echo 's,%TARGET_DIR%,$(TARGET_DIR),' >> conf.sed
+ echo 's,%BASE_HREF%,$(BASE_HREF),' >> conf.sed
+
+lingua.conf: $(srcdir)/lingua.conf.in conf.sed
+ sed -f conf.sed $(srcdir)/lingua.conf.in > $@
+
+all: stamp-lingua
+
+stamp-lingua: $(EXTRA_DIST) lingua.conf
+ lingua ellinika.ru.xml && echo "timestamp" > stamp-lingua
+

Return to:

Send suggestions and report system problems to the System administrator.