This script use recommanded steps on symfony2 official site, just save it as symfony2_init.sh and chmod +x symfony2_init.sh, then you could start using ./symfony2_init.sh <project_name> to built each of your symfony2 project.
Note: you must change SYMFONY_VERSION if you want to use new version of symfony2.