Created
September 24, 2011 12:19
-
-
Save flavius/1239268 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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