aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.htaccess5
-rw-r--r--Makefile.am24
2 files changed, 22 insertions, 7 deletions
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..2790222
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,5 @@
+RewriteEngine on
+#RewriteRule (.+)/dict.html /cgi-bin/dict.cgi?LANG=$1 [L]
+RewriteRule pl/dict.html /cgi-bin/dict.cgi?LANG=pl_PL [L]
+RewriteRule ru/dict.html /cgi-bin/dict.cgi?LANG=ru_RU [L]
+RewriteRule uk/dict.html /cgi-bin/dict.cgi?LANG=uk_UA [L]
diff --git a/Makefile.am b/Makefile.am
index 30f2c2f..902109b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,20 +23,30 @@ SUBDIRS=cgi-bin elisp data ellinika scm xml po
htmldir = $(HTMLDIR)
html_DATA = mainstyle.css
+EXTRA_DIST=.htaccess
install-html:
+ ${INSTALL} -m 644 .htaccess $(DESTDIR)$(HTMLDIR)
+ top_srcdir=`cd $(top_srcdir);pwd`; \
for dir in el pl ru; do \
here=`pwd`; \
- cd $(top_srcdir)/html/$$dir; \
- if test -d $(DESTDIR)$(HTMLDIR)/$$dir; then \
+ if test -d $(top_srcdir)/html/$$dir; then \
+ cd $(top_srcdir)/html/$$dir; \
+ if test -d $(DESTDIR)$(HTMLDIR)/$$dir; then \
:; \
- else \
+ else \
$(mkdir_p) $(DESTDIR)$(HTMLDIR)/$$dir; \
- fi; \
- for file in *.html; do \
+ fi; \
+ for file in *.html; do \
${INSTALL} -m 644 $$file $(DESTDIR)$(HTMLDIR)/$$dir/$$file; \
- done; \
- cd $$here; \
+ done; \
+ if test -r $$top_srcdir/xml/$$dir/symlinks; then \
+ grep -v '^[ \t]*[;#]' $$top_srcdir/xml/$$dir/symlinks | \
+ sed 's,^/,_,;s,\\.\\./,__/,g' | \
+ while read S T; do ln -sf $$S $$T; done; \
+ fi; \
+ cd $$here; \
+ fi; \
done
install-data-local: install-html

Return to:

Send suggestions and report system problems to the System administrator.