diff options
author | Randy Terbush <randy@apache.org> | 1999-05-02 16:44:24 +0000 |
---|---|---|
committer | Randy Terbush <randy@apache.org> | 1999-05-02 16:44:24 +0000 |
commit | 17f1eb4c227f59b9bde581d9de52a4711875370a (patch) | |
tree | e915878f42988bcafb556a2dea1cbcddf0abc407 | |
parent | 95ec032fa07b29499a3a18dab0976dd88de54360 (diff) | |
download | httpd-17f1eb4c227f59b9bde581d9de52a4711875370a.tar.gz |
Make the install-bindist.sh script standalone. (don't require src/helpers)
This could allow us to do binary distributions without source if we choose
to.
PERL detection now makes sure it is perl5 since the 2 scripts in question
(dbmmanage and apxs) require perl5.
Fix some breakage I introduced when creating apachectl.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83155 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | build/binbuild.sh | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/build/binbuild.sh b/build/binbuild.sh index 7afb8f2fdb..a7020fe984 100755 --- a/build/binbuild.sh +++ b/build/binbuild.sh @@ -172,11 +172,20 @@ cp README.bindist ../apache_$VER-$OS.README echo "##" && \ echo "## determine path to (optional) Perl interpreter" && \ echo "##" && \ - echo "PERL=no-perl-on-this-system" && \ - echo "perlpath=\"\`src/helpers/PrintPath perl5 perl miniperl\`\"" && \ - echo "if [ \"x\$perlpath\" != \"x\" ]; then" && \ - echo " PERL=\"\$perlpath\"" && \ - echo "fi" && \ + echo "PERL=no-perl5-on-this-system" && \ + echo "perls='perl5 perl'" && \ + echo "path=\`echo \$PATH | sed -e 's/:/ /g'\`" && \ + echo " " && \ + echo "for dir in \${path} ; do" && \ + echo " for pperl in \${perls} ; do" && \ + echo " if test -f \"\${dir}/\${pperl}\" ; then" && \ + echo " if \`\${dir}/\${pperl} -v | grep 'version 5\.' >/dev/null 2>&1\` ; then" && \ + echo " PERL=\"\${dir}/\${pperl}\"" && \ + echo " break" && \ + echo " fi" && \ + echo " fi" && \ + echo " done" && \ + echo "done" && \ echo " " && \ echo "if [ .\$1 = . ]" && \ echo "then" && \ @@ -186,7 +195,7 @@ cp README.bindist ../apache_$VER-$OS.README echo "fi" && \ echo "echo \"Installing binary distribution for platform $OS\"" && \ echo "echo \"into directory \$SR ...\"" && \ - echo "./src/helpers/mkdir.sh \$SR" && \ + echo "lmkdir \$SR 755" && \ echo "lmkdir \$SR/proxy 750" && \ echo "lmkdir \$SR/logs 750" && \ echo "lcopy bindist/man \$SR/man 755 644" && \ @@ -213,8 +222,8 @@ cp README.bindist ../apache_$VER-$OS.README echo " -e \"s;\@libexecdir\@;\$SR/libexec;\" -e \"s;\@includedir\@;\$SR/include;\" \\" && \ echo " -e \"s;\@sysconfdir\@;\$SR/conf;\" bindist/bin/apxs > \$SR/bin/apxs" && \ echo "sed -e \"s;^#!/.*;#!\$PERL;\" bindist/bin/dbmmanage > \$SR/bin/dbmmanage" && \ - echo "sed -e s%/usr/local/apache%\$SR/% \$SR/conf/httpd.conf.default > \$SR/conf/httpd.conf" && \ - echo "sed -e s%PIDFILE=%PIDFILE=\$SR/% -e s%HTTPD=%HTTPD=\\\"\$SR/% -e \"s%/httpd$%/httpd -d \$SR\\\"%\" bindist/bin/apachectl > \$SR/bin/apachectl" && \ + echo "sed -e \"s%/usr/local/apache%\$SR/%\" \$SR/conf/httpd.conf.default > \$SR/conf/httpd.conf" && \ + echo "sed -e \"s%PIDFILE=%PIDFILE=\$SR/%\" -e \"s%HTTPD=%HTTPD=\\\"\$SR/%\" -e \"s%httpd\$%httpd -d \$SR\\\"%\" bindist/bin/apachectl > \$SR/bin/apachectl" && \ echo " " && \ echo "echo \"Ready.\"" && \ echo "echo \" +--------------------------------------------------------+\"" && \ |