R2shell simplifies writing simple shell-like scripts in ruby.
- Ruby2Ruby
- ParseTree
gem install astrails-r2shell --source http://gems.github.com/
R2shell do
rm "-rf", "/tmp/build-foo"
mkdir "-p", "/tmp/build-foo"
cd "/tmp/build-foo"
wget "http://...../foo.tgz"
tar "-zxvf", "foo.tgz"
cd "foo"
wget "..../foo-patches.tgz"
tar "zcf", "foo-patches.tgz"
ls("foo-patches").each do |p|
patch "-i", "foo-patches/#{p}", "-p1"
end
for target in %w/build docs test install/ do
make target
end
end
Copyright (c) 2009 Vitaly Kushner [email protected], released under the MIT license