Skip to content

Instantly share code, notes, and snippets.

@akkunchoi
Created October 4, 2010 21:39
Show Gist options
  • Save akkunchoi/610490 to your computer and use it in GitHub Desktop.
Save akkunchoi/610490 to your computer and use it in GitHub Desktop.
#!/bin/sh
# pearc: wrapped pear command to install a local directory
#
# 1) pearc init [dir] [config_file]
# 2) pearc [pear_command..]
#
config=$(pwd)/.pearrc
if [ $1 = "init" ]; then
target=$(pwd)
if [ $2 ]; then
target=$2
fi
if [ $3 ]; then
config=$3
fi
pear config-create $target $config
else
pear -c $config $@
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment