Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 9, 2012
1 parent 8a7d362 commit 134cb22
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions Resources/bin/build.sh
Expand Up @@ -9,15 +9,12 @@

DIR=`php -r "echo realpath(dirname(\\$_SERVER['argv'][0]));"`
cd $DIR
VERSION=`grep 'VERSION' vendor/symfony/src/Symfony/Component/HttpKernel/Kernel.php | sed -E "s/.*'(.+)'.*/\1/g"`
VERSION=`grep 'VERSION' vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php | sed -E "s/.*'(.+)'.*/\1/g"`

if [ ! -d "$DIR/build" ]; then
mkdir -p $DIR/build
fi

$DIR/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
$DIR/app/console assets:install web/

# Without vendors
rm -rf /tmp/Symfony
mkdir /tmp/Symfony
Expand Down Expand Up @@ -58,31 +55,31 @@ fi
cp -r $DIR/vendor/* $TARGET/

# Doctrine ORM
cd $TARGET/doctrine && rm -rf UPGRADE* build* bin tests tools lib/vendor
cd $TARGET/doctrine/orm && rm -rf UPGRADE* build* bin tests tools lib/vendor

# Doctrine DBAL
cd $TARGET/doctrine-dbal && rm -rf bin build* tests lib/vendor
cd $TARGET/doctrine/dbal && rm -rf bin build* tests lib/vendor

# Doctrine Common
cd $TARGET/doctrine-common && rm -rf build* tests lib/vendor
cd $TARGET/doctrine/common && rm -rf build* tests lib/vendor

# Swiftmailer
cd $TARGET/swiftmailer && rm -rf CHANGES README* build* docs notes test-suite tests create_pear_package.php package*
cd $TARGET/swiftmailer/swiftmailer && rm -rf CHANGES README* build* docs notes test-suite tests create_pear_package.php package*

# Symfony
cd $TARGET/symfony && rm -rf README.md phpunit.xml* tests *.sh vendor
cd $TARGET/symfony/symfony && rm -rf README.md phpunit.xml* tests *.sh vendor

# Twig
cd $TARGET/twig && rm -rf AUTHORS CHANGELOG README.markdown bin doc package.xml.tpl phpunit.xml* test
cd $TARGET/twig/twig && rm -rf AUTHORS CHANGELOG README.markdown bin doc package.xml.tpl phpunit.xml* test

# Twig Extensions
cd $TARGET/twig-extensions && rm -rf README doc phpunit.xml* test
cd $TARGET/twig/extensions && rm -rf README doc phpunit.xml* test

# Monolog
cd $TARGET/monolog && rm -rf README.markdown phpunit.xml* tests
cd $TARGET/monolog/monolog && rm -rf README.markdown phpunit.xml* tests

# Metadata
cd $TARGET/metadata && rm -rf README.rst phpunit.xml* tests
cd $TARGET/jms/metadata && rm -rf README.rst phpunit.xml* tests

# cleanup
find $TARGET -name .git | xargs rm -rf -
Expand Down

0 comments on commit 134cb22

Please sign in to comment.