Skip to content

Instantly share code, notes, and snippets.

@nurse
Created July 8, 2011 09:04
Show Gist options
  • Save nurse/1071401 to your computer and use it in GitHub Desktop.
Save nurse/1071401 to your computer and use it in GitHub Desktop.
To merge json gem to ruby repo
#!/bin/sh
# you should merge https://github.com/nurse/json/tree/fix-extconf before merging
dest=$1
cp -R lib/* $dest/ext/json/lib
cp -R ext/json/ext/* $dest/ext/json
cp -R tests/* $dest/test/json
cd $dest/ext/json/lib/json/
rm -rf *.xpm pure* ext editor.rb add/rails.rb
@nobu
Copy link

nobu commented Jul 8, 2011

  • cdしてからrmすれば{}不要
  • 決め打ちのフルパスが散らばってるのはうれしくない

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment