#!/bin/bash 
# Created by Andre Anjos <andre.dos.anjos@cern.ch>
# Sex 11 Abr 2008 14:39:42 CEST

if [ $# = 0 ]; then
  echo "usage: $0 python-executable-name"
  exit 1
fi

function replace () {
  #1. what, 
  #2. newvalue, 
  #3. file
  echo "Changing file $3...";
  sed -e "s%^$1\(\s*\)=\(\s*\).*%$1\1=\2$2%" -i'~' $3
}

for f in bootstrap.sh Makefile; do
  replace PYTHON $1 $f
  replace BASEDIR $PWD $f
done

for f in stuff/Makefile; do
  replace BASEDIR $PWD $f
  replace PYTHON $1 $f
done

for f in stuff/settings.py; do
  replace BASEDIR "'$PWD/stuff'" $f
done


#!/bin/bash 
# Created by Andre Anjos <andre.dos.anjos@cern.ch>
# Sex 11 Abr 2008 14:39:42 CEST

if [ $# = 0 ]; then
  echo "usage: $0 python-executable-name"
  exit 1
fi

function replace () {
  #1. what, 
  #2. newvalue, 
  #3. file
  echo "Changing file $3...";
  sed -e "s%^$1\(\s*\)=\(\s*\).*%$1\1=\2$2%" -i'~' $3
}

for f in bootstrap.sh Makefile; do
  replace PYTHON $1 $f
  replace BASEDIR $PWD $f
done

for f in stuff/Makefile; do
  replace BASEDIR $PWD $f
  replace PYTHON $1 $f
done

for f in stuff/settings.py; do
  replace BASEDIR "'$PWD'" $f
done


Remove additional 'stuff' subdir setting
Remove additional 'stuff' subdir setting

git-svn-id: a78aebd52d19d9d3fbd421ea0b8d0260567c0f08@90 b2e9302d-b4d2-0310-80c4-8586bce995ec
