From caac8ebc7a4877b7832c48db66bd94044edaaeeb Mon Sep 17 00:00:00 2001 From: William Daniau Date: Mon, 14 Oct 2019 15:18:10 +0200 Subject: [PATCH] On copie au lieu de faire des liens symboliques. --- wize.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wize.rb b/wize.rb index a449cd2..4a94325 100755 --- a/wize.rb +++ b/wize.rb @@ -102,11 +102,14 @@ def applyConfig(name) Dir.chdir($zimHtmlTemplateDir) list = ["Wize", "Wize_with_index", "Wize_with_index_sod"] list.each { |l| - com = "rm -f #{l}/common-spec" - system(com) - com = "ln -s ../common-#{name} #{l}/common-spec" - system(com) + # Removing previous content + system("rm -rf #{l}/common") + system("rm -rf #{l}/common-spec") + # Copying new content + system("cp -r common #{l}/common") + system("cp -r common-#{name} #{l}/common-spec") } + # For print system("rm -f print-common") system("ln -s common-#{name} print-common") end -- 2.16.4