File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ Eask file in the workspace."
304304 " Set files patterns."
305305 (setq eask-files patterns))
306306
307- (defun eask-depends-on (pkg &optional minimum-version )
307+ (defun eask-depends-on (pkg &optional minimum-version &rest rcp )
308308 " Specify a dependency of this package."
309309 (if (string= pkg " emacs" )
310310 (when (and minimum-version (version< emacs-version minimum-version))
Original file line number Diff line number Diff line change 2020
2121(eask-start
2222 (eask-pkg-init)
23+
2324 (setq commander-args (cddr argv)) ; by pass `--' as well
24- (if-let* ((command (eask-argv 1 ))
25- (exe (executable-find command)))
26- (load-file exe)
27- (error " Executable `%s `.. not found " command)))
25+ (let* ((program (eask-argv 1 ))
26+ (exe (executable-find program))
27+ (command (mapconcat #'identity (append (list program) commander-args) " " )))
28+ (unless (or (ignore-errors (load exe t t ))
29+ (progn
30+ (message " Execute command %s ... " command)
31+ (zerop (shell-command command))))
32+ (error " Error from execution. " ))))
2833
2934; ;; exec.el ends here
You can’t perform that action at this time.
0 commit comments