Skip to content

Instantly share code, notes, and snippets.

@hokaccha hokaccha/gist:58603
Created Feb 5, 2009

Embed
What would you like to do?
sfinit shell script
#!/bin/sh
pjName=$1
version=$2
if [ ! "$pjName" -o ! "$version" ]; then
echo 'usage: sfinit project_name version';
exit;
fi
if expr "$version" : "^1\.0" >/dev/null; then
create=init-project
else
create=generate:project
fi
mkdir -p ${pjName}/vendor
cd ${pjName}/vendor
pear config-create `pwd` .pearrc
pear -c .pearrc channel-discover pear.symfony-project.com
pear -c .pearrc install -a symfony/symfony-${version}
cd ..
vendor/pear/symfony ${create} ${pjName}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.