[Gnucash-changes] r14045 - mail-search/nmz - First pass at a namazu
wrapper to handle LANG from the URI
Derek Atkins
warlord at cvs.gnucash.org
Sun May 14 15:16:03 EDT 2006
Author: warlord
Date: 2006-05-14 15:16:03 -0400 (Sun, 14 May 2006)
New Revision: 14045
Trac: http://svn.gnucash.org/trac/changeset/14045
Added:
mail-search/nmz/namazu-cgi.sh
Log:
First pass at a namazu wrapper to handle LANG from the URI
Added: mail-search/nmz/namazu-cgi.sh
===================================================================
--- mail-search/nmz/namazu-cgi.sh 2006-05-14 17:45:29 UTC (rev 14044)
+++ mail-search/nmz/namazu-cgi.sh 2006-05-14 19:16:03 UTC (rev 14045)
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+# Namazu CGI wrapper. Deal with LANG
+#
+
+# compute the langinfo from the PATH_INFO
+langinfo=`echo $PATH_INFO | sed -e 's#^/\([^/]*\)/*$#\1#'`
+
+if [ -n "$langinfo" ] ; then
+ LANG="$langinfo"
+ SCRIPT_NAME="$SCRIPT_NAME/$langinfo"
+ export LANG
+ export SCRIPT_NAME
+fi
+
+exec /var/www/cgi-bin/namazu.cgi
Property changes on: mail-search/nmz/namazu-cgi.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ "Author Date Id Revision"
Name: svn:eol-style
+ native
More information about the gnucash-changes
mailing list