httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: Patch for HP-UX 10.10 Configure
Date Wed, 10 Sep 1997 00:45:35 GMT
Doug MacEachern wrote:
> 
> eek, I see "modname=500 Internal Server Error...", where the heck does
> that come from?
> 

OK... I'm trying these:
Index: apachen/src/Configure
===================================================================
RCS file: /export/home/cvs/apachen/src/Configure,v
retrieving revision 1.151
diff -u -r1.151 Configure
--- Configure	1997/09/09 22:33:53	1.151
+++ Configure	1997/09/10 00:44:06
@@ -763,7 +763,7 @@
 for modfile in $MODFILES ; do
 #	echo Trying to find $modfile
 	rm -f $tmpfile2 $tmpfile3
-	modname=
+	modname=''
 
 	ext=`echo $modfile | sed 's/^.*\.//'`
 	modbase=`echo $modfile | sed 's/\.[^.]*$//'`
@@ -777,10 +777,11 @@
 
 	if [ -r $modbase.module ] ; then
 		cat $modbase.module > $tmpfile2
-	elif [ -f $modbase.c ] ; then
+	else
+	    if [ -f $modbase.c ] ; then
 		# Guess module structure name in case there is not
 		# module definition in this file
-		modname=`grep '^module .*;' $modbase.c | head -1 |\
+		modname=`egrep '^module .*;' $modbase.c | head -1 |\
 			sed 's/^module.*[ 	][ 	]*//' | \
 			sed 's/[ 	]*;[ 	]*$//'`
 		# Get any module definition part
@@ -789,6 +790,7 @@
 		sed '1,/MODULE-DEFINITION-START/d;/MODULE-DEFINITION-END/,$d' \
 			> $tmpfile2
 		fi
+	    fi
 	fi		
 	if [ -r $tmpfile2 ] ; then
 		# Read a module definition from .module or .c
-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
            "Look at me! I'm wearing a cardboard belt!"

Mime
View raw message