Commit 3cb0e302 authored by François Févotte's avatar François Févotte

Ex 03-3 : ajustements pour la reproductibilité

parent 62bcac45
cd(@__DIR__)
module Tools
function run_julia(args...)
cd(@__DIR__)
julia = Base.julia_cmd()[1]
run(`$julia --color=yes --startup-file=no --project $args`)
nothing
end
setup() = run_julia("setup.jl")
compile() = run_julia("compile.jl")
function weave()
cd(@__DIR__)
opts = String[]
isfile("Exercice.so") && push!(opts, "-JExercice.so")
run_julia(opts..., "make.jl")
end
end
......@@ -93,28 +93,3 @@ function disp()
m.captures[1]
end |> print
end
module Exercice
function run_julia(args...)
cd(@__DIR__)
julia = Base.julia_cmd()[1]
run(`$julia --color=yes --startup-file=no --project $args`)
nothing
end
setup() = run_julia("setup.jl")
compile() = run_julia("compile.jl")
function weave()
cd(@__DIR__)
opts = String[]
isfile("Exercice.so") && push!(opts, "-JExercice.so")
run_julia(opts..., "make.jl")
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment