mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-28 01:13:34 +03:00
Add a hacky way to get local executable path
This commit is contained in:
parent
244848326c
commit
fd67463b2b
5
cry
5
cry
@ -19,6 +19,7 @@ Available commands:
|
||||
build Build Cryptol
|
||||
haddock Generate Haddock documentation
|
||||
test Run some tests
|
||||
exe-path Print the location of the local executable
|
||||
EOM
|
||||
}
|
||||
|
||||
@ -78,6 +79,10 @@ case $COMMAND in
|
||||
show_usage
|
||||
exit 0;;
|
||||
|
||||
exe-path)
|
||||
cabal v2-run exe:cryptol --verbose -- -c ':q' | grep :q | awk '{ print $1 }'
|
||||
exit 0;;
|
||||
|
||||
*)
|
||||
echo Unrecognized command: $COMMAND
|
||||
show_usage
|
||||
|
Loading…
Reference in New Issue
Block a user