Created
February 8, 2010 13:29
-
-
Save takeru/298139 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
ls -l WEB-INF/lib/gems.jar | |
jar -tf WEB-INF/lib/gems.jar | wc -l | |
cd WEB-INF/lib | |
rm -rf .tmp | |
mkdir .tmp | |
mv gems.jar .tmp/gems_ORIG.jar | |
cd .tmp | |
jar -xf gems_ORIG.jar | |
rm -rf bundler_gems/jruby/1.8/gems/activerecord-2.3.5 | |
rm -rf bundler_gems/jruby/1.8/gems/actionmailer-2.3.5 | |
rm -rf bundler_gems/jruby/1.8/gems/activesupport-2.3.5/lib/active_support/vendor | |
find . -name doc | xargs rm -rf | |
find . -name guides | xargs rm -rf | |
find . -name rails_generator | xargs rm -rf | |
find . -name tests | xargs rm -rf | |
find . -name test | xargs rm -rf | |
find . -name spec | xargs rm -rf | |
find . -name tasks | xargs rm -rf | |
find . -name commands | xargs rm -rf | |
find . -name examples | xargs rm -rf | |
find . -name example | xargs rm -rf | |
find . -name doc-api | xargs rm -rf | |
find . -name benchmark | xargs rm -rf | |
jar -cf gems.jar bundler_gems | |
mv gems.jar ../ | |
cd ../../.. | |
ls -l WEB-INF/lib/gems.jar | |
jar -tf WEB-INF/lib/gems.jar | wc -l | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment