Skip to content

Commit

Permalink
bugfix: Use dos2unix on runtime scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahbeckford committed Aug 20, 2024
1 parent ae4cd5e commit 04fcc87
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/runtimescripts/dune
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,20 @@
(with-accepted-exit-codes (or 0 1) (system "mkdir Machine"))))))))))))
(no-infer
(progn
(copy %{td} dkmldir/vendor/drc/template.dkmlroot)
(copy %{wd} dkmldir/vendor/drc/unix/_within_dev.sh)
(copy %{ct} dkmldir/vendor/drc/unix/_common_tool.sh)
(copy %{cf} dkmldir/vendor/drc/unix/crossplatform-functions.sh)
(copy %{cos} dkmldir/vendor/drd/src/unix/create-opam-switch.sh)
(copy %{poe} dkmldir/vendor/drd/src/unix/private/platform-opam-exec.sh)
(copy %{ior} dkmldir/vendor/drd/src/unix/private/init-opam-root.sh)
(copy %{wdh} dkmldir/vendor/drd/src/windows/DeploymentHash/DeploymentHash.psm1)
(copy %{wmc} dkmldir/vendor/drd/src/windows/Machine/Machine.psm1)
(copy %{ioc} dkmldir/install-ocaml-compiler.sh)
(copy %{ros} dkmldir/restore-ocaml-shims.sh)
(copy %{fvb} dkmldir/cache-vsstudio.bat)
(copy %{fvp} dkmldir/cache-vsstudio.ps1)))
; always use LF endings except for PowerShell .ps* files which may have UTF-16 encodings set by .gitattributes (and dos2unix.exe does not work with UTF-16)
(run %{exe:../runtimelib/dos2unix.exe} %{td} dkmldir/vendor/drc/template.dkmlroot)
(run %{exe:../runtimelib/dos2unix.exe} %{wd} dkmldir/vendor/drc/unix/_within_dev.sh)
(run %{exe:../runtimelib/dos2unix.exe} %{ct} dkmldir/vendor/drc/unix/_common_tool.sh)
(run %{exe:../runtimelib/dos2unix.exe} %{cf} dkmldir/vendor/drc/unix/crossplatform-functions.sh)
(run %{exe:../runtimelib/dos2unix.exe} %{cos} dkmldir/vendor/drd/src/unix/create-opam-switch.sh)
(run %{exe:../runtimelib/dos2unix.exe} %{poe} dkmldir/vendor/drd/src/unix/private/platform-opam-exec.sh)
(run %{exe:../runtimelib/dos2unix.exe} %{ior} dkmldir/vendor/drd/src/unix/private/init-opam-root.sh)
(copy %{wdh} dkmldir/vendor/drd/src/windows/DeploymentHash/DeploymentHash.psm1)
(copy %{wmc} dkmldir/vendor/drd/src/windows/Machine/Machine.psm1)
(run %{exe:../runtimelib/dos2unix.exe} %{ioc} dkmldir/install-ocaml-compiler.sh)
(run %{exe:../runtimelib/dos2unix.exe} %{ros} dkmldir/restore-ocaml-shims.sh)
(run %{exe:../runtimelib/dos2unix.exe} %{fvb} dkmldir/cache-vsstudio.bat)
(copy %{fvp} dkmldir/cache-vsstudio.ps1)))
(run
%{bin:ocaml-crunch}
"--mode=plain"
Expand Down

0 comments on commit 04fcc87

Please sign in to comment.