Skip to content

Commit

Permalink
Nicer intro
Browse files Browse the repository at this point in the history
  • Loading branch information
samvasko committed Sep 28, 2013
1 parent 4dc1065 commit a516858
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build_cmder.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Samuel Vasko 2013
# Cmder build script
# Like really a beta
#
# This script downloads dependencies form google code. Each software is extracted
# in a folder with same name as the project on google code. So Conemu becomes
# conemu-maximus5. Correct files are beeing picked by using labels.
# I will move the script for getting files by labels from php to here as soon I feel like it

require 'FileUtils'
require "pp"

def get_file project, query
# Should be changed to integrated downloader
Expand All @@ -15,15 +19,15 @@ def get_file project, query
filename = project+'.'+extension

puts "\n ------ Downloading #{project} ------- \n \n"
get_file = system("wget -O #{filename} -nc #{urlToFile}")
get_file = system("wget -O #{filename} #{urlToFile}")

unless get_file
puts "Failied to download #{project} from #{urlToFile}"
FileUtils.rm(filename) if File.exists?(filename)
exit(1)
end

system("7z x -o\"#{project}\" #{project}.#{extension}")
system("7z x -o\"#{project}\" #{filename}")

File.unlink(project+"."+extension);

Expand Down

0 comments on commit a516858

Please sign in to comment.