Automate searching for executable in run script
For now, do it relatively unsafe (you may have to delete the `dist-newstyle` folder and then rebuild if there may be multiple executables found under `dist-newstyle`—e.g. from different GHC versions—as this is not handled correctly by the script).
This commit is contained in:
parent
b4f5810239
commit
8c273aa0fa
3
run
3
run
|
@ -1,8 +1,9 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i fish -p fish feedgnuplot
|
||||
|
||||
set exe (fd --type f '^haga$' dist-newstyle/)
|
||||
|
||||
dist-newstyle/build/x86_64-linux/ghc-8.8.3/haga-0.1.0.0/x/haga/build/haga/haga $argv | \
|
||||
"$exe" $argv | \
|
||||
# dist-newstyle/build/x86_64-linux/ghc-8.6.5/ga-0.1.0.0/x/ga/build/ga/ga $argv | \
|
||||
feedgnuplot \
|
||||
--terminal "x11 background '#ffffff'" \
|
||||
|
|
Loading…
Reference in New Issue
Block a user