Ignore:
Timestamp:
2009-03-27T19:29:12+13:00 (15 years ago)
Author:
ak19
Message:

In order to be able to run the final install-bindist.sh file (to be copied into the apache folder that will be compiled up) from whatever parent directory that it is called from, the script now first works out the absolute path its running from. This was necessary because if the script remained unaware of where it is running from AND it is run from outside its own directory then it will wreck the apache shell scripts it was supposed to modify, causing more trouble than its worth.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/packages/apache-httpd/install-bindist.sh

    r18814 r18827  
    6262fi
    6363
     64# Need to run this script from its own directory
     65# instead of whatever directory it may be called from
     66currentdir=$(cd `dirname $0` && pwd)
     67cd $currentdir
     68
    6469sed -e "s%\*\*APACHE_HOME_OS\*\*%$SR%" $SR/conf/httpd.conf.in > $SR/conf/httpd.conf
    6570
     
    6772    apxs.in > $SR/bin/apxs
    6873
     74# usually we're updating existing files, so need to copy them over into tmp files first
    6975PRE=`grep "^prefix = " build/config_vars.mk`
    7076PRE=`echo $PRE | sed -e "s;prefix = ;;"`
Note: See TracChangeset for help on using the changeset viewer.