Last active
October 13, 2015 18:07
-
-
Save memborsky/4234870 to your computer and use it in GitHub Desktop.
Automate pianobar update process.
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
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