3 pushd `dirname ${BASH_SOURCE[0]}` > /dev/null
7 PROJECT_ROOT_PATH="${SCRIPT_PATH}/.."
8 if [[ -z "${CHROME_SRC}" ]]; then
9 # If $CHROME_SRC was not set, assume src subfolder in project directory is CHROME_SRC.
10 export CHROME_SRC="${PROJECT_ROOT_PATH}/src"
18 echo Applying $patchfile in $directory
19 pushd "$directory" > /dev/null
20 patch -p1 $@ < "$patchfile"