Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 67102 invoked by uid 500); 5 Dec 2000 14:36:36 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 67040 invoked by uid 500); 5 Dec 2000 14:36:34 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 5 Dec 2000 14:36:33 -0000 Message-ID: <20001205143633.67011.qmail@locus.apache.org> From: bjh@locus.apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/build buildexports.awk buildexports.sh bjh 00/12/05 06:36:32 Modified: build buildexports.sh Added: build buildexports.awk Log: Speed up the generation of exports.c by using an awk script to process apr.exports instead of shell script. Revision Changes Path 1.7 +1 -21 httpd-2.0/build/buildexports.sh Index: buildexports.sh =================================================================== RCS file: /home/cvs/httpd-2.0/build/buildexports.sh,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- buildexports.sh 2000/12/04 18:56:11 1.6 +++ buildexports.sh 2000/12/05 14:36:31 1.7 @@ -17,27 +17,7 @@ cd ../../../ echo "" -while read LINE -do - if [ "x`echo $LINE | egrep '^[:space:]*APR_'`" != "x" ]; then - ifline=`echo "$LINE" |\ - sed -e 's%^\(.*\)%\#if \1%'` - echo $ifline - fi - if [ "x`echo $LINE | egrep '^[:space:]*apr_'`" != "x" ]; then -# newline=`echo "$LINE" |\ -# sed -e 's%^\(.*\)%extern const void *\1\\(void\);%'` -# echo $newline - newline=`echo "$LINE" |\ - sed -e 's%^\(.*\)%const void *ap_hack_\1 = \(const void *\)\1\;%'` - echo $newline - fi - if [ "x`echo $LINE | egrep '^[:space:]*\/APR_'`" != "x" ]; then - endline=`echo "$LINE" |\ - sed -e 's%^\/\(.*\)%\#endif \/\*\1\*\/%'` - echo "$endline" - fi -done +awk -f build/buildexports.awk echo "" echo "void *ap_ugly_hack;" 1.1 httpd-2.0/build/buildexports.awk Index: buildexports.awk =================================================================== { if ($1 ~ /^APR_/) print "#if", $1; if ($1 ~ /^apr_/) print "const void *ap_hack_" $1 " = (const void *)" $1 ";"; if ($1 ~ /^\/APR_/) print "#endif /*", substr($1,2), "*/"; }