Skip to content

Commit

Permalink
#388 Fix issue with copying platform specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Nov 1, 2015
1 parent 92bf8b8 commit 6488bad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/artefact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def corto_replace(str)
if (not File.exists? lib) then
abort "\033[1;31m[ #{l} not found ]\033[0;49m"
end
lib
end
lib
end

OBJECTS.concat(LINKED)
Expand Down
4 changes: 2 additions & 2 deletions build/library.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
etc = "#{ENV['CORTO_TARGET']}/etc/corto/#{VERSION}/#{TARGETPATH}"
sh "mkdir -p #{etc}"
if File.exists? "etc/everywhere" then
sh "cp -r etc/everywhere/ #{etc}/ 2> /dev/null"
sh "cp -r etc/everywhere/* #{etc}/"
end
platformStr = "etc/" + `uname -s`[0...-1] + "-" + `uname -p`[0...-1]
if File.exists? platformStr then
sh "cp -r " + platformStr + "/ #{etc}"
sh "cp -r " + platformStr + "/* #{etc}"
end
end
if ENV['CORTO_TARGET'] != "/usr/local" then
Expand Down

0 comments on commit 6488bad

Please sign in to comment.