Skip to content

Commit

Permalink
Attempt to symlink to /usr/local/bin on install
Browse files Browse the repository at this point in the history
  • Loading branch information
swlkr committed May 5, 2020
1 parent 67f1ee2 commit 4f98b70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions project.janet
Expand Up @@ -21,3 +21,13 @@

(declare-source
:source @["src/joy" "src/joy.janet"])

# symlink joy executable in /usr/local/bin for convenience
(try
(do
(def JANET_BINPATH (or (os/getenv "JANET_BINPATH")
(string (dyn :syspath) "/bin")))
(def joy-binscript (string (dyn :binpath JANET_BINPATH) "/joy"))
(os/link joy-binscript "/usr/local/bin/joy" true))
([err]))
# purposely ignore any errors here

0 comments on commit 4f98b70

Please sign in to comment.