1
0
mirror of https://github.com/janet-lang/janet synced 2025-02-23 03:30:02 +00:00

Remove extra function on some installs.

This commit is contained in:
Calvin Rose 2020-06-14 14:09:32 -05:00
parent 853b33b67c
commit f435bb24ab

6
jpm
View File

@ -19,6 +19,9 @@
# Defaults # Defaults
# #
###START###
# Overriden on some installs.
(def- exe-dir (def- exe-dir
"Directory containing jpm script" "Directory containing jpm script"
(do (do
@ -26,12 +29,11 @@
(def i (last (string/find-all sep exe))) (def i (last (string/find-all sep exe)))
(slice exe 0 i))) (slice exe 0 i)))
###START###
# Overriden on some installs.
(def- install-paths (def- install-paths
{:headerpath (os/realpath (string exe-dir "/../include/janet")) {:headerpath (os/realpath (string exe-dir "/../include/janet"))
:libpath (os/realpath (string exe-dir "/../lib")) :libpath (os/realpath (string exe-dir "/../lib"))
:binpath exe-dir}) :binpath exe-dir})
###END### ###END###
# Default based on janet binary location # Default based on janet binary location