An Electron-based JLD2 data file viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jld2view 649B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. #=
  3. exec julia --color=no --startup-file=no --compile=min --optimize=0 "${BASH_SOURCE[0]}" "$@"
  4. =#
  5. using Pkg
  6. Pkg.activate(@__DIR__, io=IOBuffer())
  7. using Scratch
  8. julia = Base.julia_cmd()[1]
  9. script = joinpath(@__DIR__, "..", "main.jl")
  10. args = String["--compile=min", "--optimize=0"]
  11. scratchdir = get_scratch!(Pkg.project().dependencies["JLD2View"], "sysimages")
  12. sysimage = joinpath(scratchdir, "sysimage.so")
  13. if (ispath(sysimage))
  14. push!(args, "--sysimage=$sysimage")
  15. end
  16. cmd = `$julia $args $script $ARGS`
  17. try
  18. run(cmd)
  19. catch e
  20. process = first(e.procs)
  21. exit(process.exitcode)
  22. end
  23. # Local Variables:
  24. # mode: julia
  25. # End: