Skip to content

Commit 98265f0

Browse files
authored
Merge pull request #1658 from sogaiu/tweak-has-bin-script
2 parents 2204209 + 1018cb9 commit 98265f0

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)