Skip to content

Commit 1018cb9

Browse files
author
sogaiu
committed
Support :has-exe as well
This is a companion change to spork's issue As implemented, :has-been-script didn't quite mean what was intended. :has-exe should be an improvement. To prevent breakage, both :has-bin-script and :has-exe should be supported for a while in both spork and janet. Eventually :has-bin-script can be retired.
1 parent 2204209 commit 1018cb9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/boot/boot.janet

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4388,7 +4388,9 @@
43884388
(when check
43894389
(do-hook module bundle-name :check man)))
43904390
(print "installed " bundle-name)
4391-
(when (get man :has-bin-script)
4391+
(when (or (get man :has-exe)
4392+
# remove eventually
4393+
(get man :has-bin-script))
43924394
(def binpath (string (dyn *syspath*) s "bin"))
43934395
(eprintf "executable files have been installed to %s" binpath))
43944396
(when (get man :has-man)
@@ -4528,7 +4530,8 @@
45284530
(default filename (last (string/split s src)))
45294531
(default chmod-mode 8r755)
45304532
(os/mkdir (string (dyn *syspath*) s "bin"))
4531-
(put manifest :has-bin-script true)
4533+
(put manifest :has-exe true)
4534+
(put manifest :has-bin-script true) # remove eventually
45324535
(bundle/add-file manifest src (string "bin" s filename) chmod-mode))
45334536

45344537
(defn bundle/add-manpage

0 commit comments

Comments
 (0)