Created
October 31, 2010 10:04
-
-
Save aerith/656379 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
perlbin=`which perl` | |
phpbin=`which php` | |
rubybin=`which ruby` | |
pythonbin=`which python` | |
if [ -x $perlbin ]; then | |
echo -n "==================================================\n" | |
echo "Perl Paths" | |
echo -n "==================================================\n" | |
$perlbin -e 'print join "\n", @INC'; | |
echo -n "\n" | |
fi; | |
if [ -x $phpbin ]; then | |
echo -n "==================================================\n" | |
echo "PHP Paths" | |
echo -n "==================================================\n" | |
$phpbin -r 'print implode("\n", explode(PATH_SEPARATOR, get_include_path()));'; | |
echo -n "\n" | |
fi; | |
if [ -x $rubybin ]; then | |
echo -n "==================================================\n" | |
echo "Ruby Paths" | |
echo -n "==================================================\n" | |
$rubybin -e 'print $:.join("\n")'; | |
echo -n "\n" | |
fi; | |
if [ -x $pythonbin ]; then | |
echo -n "==================================================\n" | |
echo "Python Paths" | |
echo -n "==================================================\n" | |
$pythonbin -c 'import sys; print "\n".join(sys.path)'; | |
echo -n "\n" | |
fi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment