diff options
author | Michael Haro <mharo@FreeBSD.org> | 1999-04-15 20:44:57 +0000 |
---|---|---|
committer | Michael Haro <mharo@FreeBSD.org> | 1999-04-15 20:44:57 +0000 |
commit | ea40f6c11572b20a8f790abc29628a1a805dae76 (patch) | |
tree | 6ccdadfaab89d183eff863f0ff40874102d6e265 /misc/jargon/files | |
parent | upgrade to 3.37 (diff) |
Update from 4.0.0 to 4.1.0
Notes
Notes:
svn path=/head/; revision=17896
Diffstat (limited to 'misc/jargon/files')
-rw-r--r-- | misc/jargon/files/patch-aa | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/misc/jargon/files/patch-aa b/misc/jargon/files/patch-aa new file mode 100644 index 000000000000..b1f86afc4e00 --- /dev/null +++ b/misc/jargon/files/patch-aa @@ -0,0 +1,37 @@ +--- jargon-search.orig Tue Apr 6 12:01:51 1999 ++++ jargon-search Thu Apr 15 13:24:20 1999 +@@ -10,8 +10,8 @@ + + # The document directory of the server, with *no* trailing slash. It sucks + # that we can't pull this out of the environment, you may have to change it. +-# (The default /home/httpd/html works for Apache running under Red Hat Linux) +-$html_base='/home/httpd/html'; ++# (The default /usr/local/www/data works for Apache running under Red Hat Linux) ++$html_base='/usr/local/www/data'; + + # The relative location of the Jargon File files. + $jargon_path="/jargon/html"; +@@ -356,10 +356,12 @@ + $server = $ENV{'SERVER_NAME'}; + + $match=0; +- foreach $piece (split('\n', `ls -1 ${html_base}${jargon_path}/*/*.html`)) ++ $ENV{'PATH'} = '/bin:/usr/bin'; ++ chdir("${html_base}${jargon_path}"); ++ foreach $piece (split('\n', `ls -1 */*.html`)) + { + # print "Piece: $piece<BR>\n"; +- $file=substr($piece,length($html_base)+1); ++# $file=substr($piece,length($html_base)+1); + # print "File: $file<BR>\n"; + open(PART, $piece); + $tag = ""; +@@ -376,7 +378,7 @@ + if ($tag && /$key/) + { + $match++; +- print "<A HREF=\"http://${server}/${file}#${tag}\">${name}</A> line ${offset}<BR>\n"; ++ print "<A HREF=\"http://${server}${jargon_path}/${piece}#${tag}\">${name}</A> line ${offset}<BR>\n"; + } + } + close(PART); |