]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Make the install-bindist.sh script standalone. (don't require src/helpers)
authorRandy Terbush <randy@apache.org>
Sun, 2 May 1999 16:44:24 +0000 (16:44 +0000)
committerRandy Terbush <randy@apache.org>
Sun, 2 May 1999 16:44:24 +0000 (16:44 +0000)
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

build/binbuild.sh

index 7afb8f2fdbbac897ffb364ddc978554e943c39dc..a7020fe9847bc48508073d4b29fc9e5f290c9f01 100755 (executable)
@@ -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 \" +--------------------------------------------------------+\"" && \