From 1018cb9ccab5d9be75bc19c59faf81d01e6ae7bc Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Fri, 17 Oct 2025 22:36:45 +0900 Subject: [PATCH] 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. --- src/boot/boot.janet | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 9f7fd34b..c929cb0e 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -4388,7 +4388,9 @@ (when check (do-hook module bundle-name :check man))) (print "installed " bundle-name) - (when (get man :has-bin-script) + (when (or (get man :has-exe) + # remove eventually + (get man :has-bin-script)) (def binpath (string (dyn *syspath*) s "bin")) (eprintf "executable files have been installed to %s" binpath)) (when (get man :has-man) @@ -4528,7 +4530,8 @@ (default filename (last (string/split s src))) (default chmod-mode 8r755) (os/mkdir (string (dyn *syspath*) s "bin")) - (put manifest :has-bin-script true) + (put manifest :has-exe true) + (put manifest :has-bin-script true) # remove eventually (bundle/add-file manifest src (string "bin" s filename) chmod-mode)) (defn bundle/add-manpage