Skip to content

Instantly share code, notes, and snippets.

@royopa
Last active August 29, 2015 14:10
Show Gist options
  • Save royopa/599259ebeffa6ab7b1cb to your computer and use it in GitHub Desktop.
Save royopa/599259ebeffa6ab7b1cb to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install git subversion php5-cli php-pear sublime-text-installer php5-sqlite
mkdir ~/translation_fest
cd ~/translation_fest
git clone https://git.php.net/repository/phd.git
cd phd
sudo pear install package.xml package_generic.xml package_php.xml
# Set the path to PHP from environment or use which to discover it
if [ "$PHP" == "" ];
then
PHP=$(which php 2>/dev/null)
fi
# Sets the path to PHD from environment or use which to discover it
if [ "$PHD" == "" ];
then
PHD=$(which phd 2>/dev/null)
fi
# Sets the browser application from environment or falls back on open if it is found
if [ "$BROWSER" == "" ];
then
BROWSER=$(which open 2>/dev/null)
fi
# Test for executability of PHP
if [ ! -x "$PHP" ];
then
echo "Cannot execute PHP ($PHP) !"
exit 1
fi
# Test for executability of PHD
if [ ! -x "$PHD" ];
then
echo "Cannot execute $PHD, is PHD installed ?"
exit 2
fi
cd ~/translation_fest
svn co https://svn.php.net/repository/phpdoc/modules/doc-pt_BR
@royopa
Copy link
Author

royopa commented Nov 29, 2014

valeu @lcobucci, removi as linhas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment