Script for proper build of SCE modules

From: Date: Tue, 13 Mar 2001 19:58:31 +0000
Subject: Script for proper build of SCE modules
Groups: php.dev 
Request: Send a blank email to php-dev+get-48830@lists.php.net to get a copy of this message
Hi! Following little script does quick conversion of all modules' sources to new configuration header file for self-contained-extensions (config.h instead of php_config.h). It is not optimized but does its work fine: after that all modules that supposed to be compiled in SCE mode, compile and get loaded into PHP without errors. #!/bin/bash PHP4_ROOT=php4 EXTENSIONS=find $PHP4_ROOT/ext -type d -maxdepth 1 -print PWD_X=pwd for i in $EXTENSIONS ; do cd $i for j in ls *.c ; do perl -pi -e "s/#include \"php.h\"/#include \"php.h\"\n#include \"config.h\"/" $j done cd $PWD_X done -- Sincerely yours, Alexander Bokovoy The Midgard Project | www.midgard-project.org | Aurora R&D team Minsk Linux Users Group | www.minsk-lug.net | www.aurora-linux.com ALT Linux Team | www.alt-linux.org | Architecte Open Source -- History repeats itself only if one does not listen the first time.

« previous php.dev (#48830) next »