httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bh...@gensym.com (Ben Hyde)
Subject [Patch] Support additional module subdirs
Date Thu, 16 Apr 1998 15:20:51 GMT

Configure punished me for putting my module in it's
own directory src/modules/satilite/

On the sun4 & sgi:
  awk: string too long near line 2
  awk: syntax error near line 2
  awk: illegal statement near line 2
  awk: newline in string near line 2

This line is the problem:
       split ("$AUTOLIBS", libs)

it exapands into (broken over a few lines here)

  split (" modules/standard/libstandard.a modules/proxy/libproxy.a
           modules/example/libexample.a 
           modules/experimental/libexperimental.a 
           modules/satilite/libsatilite.a", libs)

Doing this patch after the beta would fix the problem.

   - ben hyde

---

 cvs diff -u Configure
Index: Configure
===================================================================
RCS file: /cvs/apache-1.3/src/Configure,v
retrieving revision 1.238
diff -u -r1.238 Configure
--- Configure	1998/04/15 17:10:18	1.238
+++ Configure	1998/04/16 15:04:41
@@ -1356,27 +1356,11 @@
 awk -f $awkfile >>Makefile <$tmpfile
 
 ####################################################################
-## Now add the auto-generated library targets.  Need to use awk so we
-## don't hang a continuation on the last line.
+## Now add the auto-generated library targets.
 ##
-$CAT > $awkfile <<EOF3
-    BEGIN {
-	split ("$AUTOLIBS", libs)
-EOF3
-$CAT >> $awkfile <<'EOF4'
-	z = 0
-	for ( lib in libs ) {
-	    if (z != 0)
-		printf (" \\\n")
-	    z++
-	    printf ("  %s", libs[lib])
-	}
-    }
-    END {
-	printf ("\n")
-    }
-EOF4
-awk -f $awkfile >>Makefile </dev/null
+echo $AUTOLIBS | tr ' ' '\12' \
+ | sed -e 's/$/ \\/'  -e 's/^/  /'  -e '$s/ \\//' \
+ >> Makefile
 echo "" >>Makefile
 
 ####################################################################

Mime
View raw message