Nicer intro

This commit is contained in:
Samuel Vasko 2013-09-28 20:53:19 +02:00
parent 4dc1065399
commit a516858048

View File

@ -1,9 +1,13 @@
# Samuel Vasko 2013 # Samuel Vasko 2013
# Cmder build script # Cmder build script
# Like really a beta # 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 'FileUtils'
require "pp"
def get_file project, query def get_file project, query
# Should be changed to integrated downloader # Should be changed to integrated downloader
@ -15,7 +19,7 @@ def get_file project, query
filename = project+'.'+extension filename = project+'.'+extension
puts "\n ------ Downloading #{project} ------- \n \n" puts "\n ------ Downloading #{project} ------- \n \n"
get_file = system("wget -O #{filename} -nc #{urlToFile}") get_file = system("wget -O #{filename} #{urlToFile}")
unless get_file unless get_file
puts "Failied to download #{project} from #{urlToFile}" puts "Failied to download #{project} from #{urlToFile}"
@ -23,7 +27,7 @@ def get_file project, query
exit(1) exit(1)
end end
system("7z x -o\"#{project}\" #{project}.#{extension}") system("7z x -o\"#{project}\" #{filename}")
File.unlink(project+"."+extension); File.unlink(project+"."+extension);