Commit caac8ebc7a4877b7832c48db66bd94044edaaeeb

Authored by William Daniau
1 parent fc7eccbc7c
Exists in master

On copie au lieu de faire des liens symboliques.

Showing 1 changed file with 7 additions and 4 deletions Side-by-side Diff

... ... @@ -102,11 +102,14 @@
102 102 Dir.chdir($zimHtmlTemplateDir)
103 103 list = ["Wize", "Wize_with_index", "Wize_with_index_sod"]
104 104 list.each { |l|
105   - com = "rm -f #{l}/common-spec"
106   - system(com)
107   - com = "ln -s ../common-#{name} #{l}/common-spec"
108   - system(com)
  105 + # Removing previous content
  106 + system("rm -rf #{l}/common")
  107 + system("rm -rf #{l}/common-spec")
  108 + # Copying new content
  109 + system("cp -r common #{l}/common")
  110 + system("cp -r common-#{name} #{l}/common-spec")
109 111 }
  112 + # For print
110 113 system("rm -f print-common")
111 114 system("ln -s common-#{name} print-common")
112 115 end