Created
September 22, 2022 08:54
-
-
Save andreypopp/866a64c6a93e623b9e903f749fe7e4fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in "$@"; do | |
if [[ $i == "-config" ]]; then | |
exec "/home/andreypopp/workspace/melange/_opam/bin/ocamlc" "$@" | |
fi | |
done | |
declare -a bsargs | |
bsargs=("-I" "/home/andreypopp/workspace/melange/melange/_esy/default/build/default/jscomp/stdlib-412") | |
for word in "$@"; do | |
case "$word" in | |
-strict-sequence);; | |
-strict-formats);; | |
-opaque);; | |
-a);; | |
-g) bsargs+=("-bs-g");; | |
*) bsargs+=("$word") | |
esac | |
done | |
echo "${bsargs[@]}" | |
exec "/home/andreypopp/workspace/melange/melange/_esy/default/build/install/default/bin/bsc" "${bsargs[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment