Skip to content

Instantly share code, notes, and snippets.

@flavius
Created September 24, 2011 12:19
Show Gist options
  • Select an option

  • Save flavius/1239268 to your computer and use it in GitHub Desktop.

Select an option

Save flavius/1239268 to your computer and use it in GitHub Desktop.
#!/bin/bash
PHP_V=$1
PHP_SRCD=$(echo $PHP_V | sed s/\\./_/g)
PHP_BIND=$(echo "/usr/local/php$PHP_V/bin")
FLAV_ACTIVATED_PHP=$PHP_V
export FLAV_ACTIVATED_PHP
FLAV_SRCACTIVE_PHP="/home/flav/projects/php/php-src/tags/php_$PHP_SRCD"
export FLAV_SRCACTIVE_PHP
if [ -z "$OPATH" ];then
OPATH=$PATH
export OPATH;
fi;
PATH=$PHP_BIND:$OPATH
echo "file $PHP_BIND/php" > environment.gdb
echo "./environment.gdb created"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment