Skip to content

Instantly share code, notes, and snippets.

@memborsky
Last active October 13, 2015 18:07
Show Gist options
  • Save memborsky/4234870 to your computer and use it in GitHub Desktop.
Save memborsky/4234870 to your computer and use it in GitHub Desktop.
Automate pianobar update process.
require 'rake'
flags = "CC=CC CFLAGS=\"-O2 -DNDEBUG\""
desc "Clean up"
task :clean do
puts "Cleaning..."
`#{flags} make clean`
end
task :update do
puts "Updating..."
`git pull`
end
task :build do
puts "Building..."
`#{flags} make`
end
desc "Build and install"
task :install => [:clean, :update, :build] do
puts "Installing..."
`make install`
end
task :default => 'install'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment