unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))
@ 2021-12-03  6:28 Hongyi Zhao
  2021-12-03  6:31 ` Hongyi Zhao
  0 siblings, 1 reply; 2+ messages in thread
From: Hongyi Zhao @ 2021-12-03  6:28 UTC (permalink / raw)
  To: help-gnu-emacs

I try to install vterm through straight's use-package integration with
the following configuration:

1.
(use-package vterm
  :straight (
         :pre-build (
             ("rm" "-fr" "build")
             ("mkdir" "build")
              ("bash" "-c" "cd build && cmake .. && make")
               )))

2.
(use-package vterm
  :straight (
         :pre-build (
                 (shell-command "rm -fr build && mkdir build && cd $_
&& cmake .. && make")
             )))

3.
(use-package vterm
  :straight (
         :pre-build (
             ("rm" "-fr" "build")
             ("mkdir" "build")
             `("bash" "-c" "cd \"$1\" && cmake .. && make" "--"
,(concat (straight--repos-dir "emacs-libvterm") "build"))
             )))


In the above methods, 1. and 2. can, but 3. can't build the vterm
module when I'm running `M-x straight-rebuild-package RET vterm RET'.

So, I want to know what's wrong with the following bash command calling method:

`("bash" "-c" "cd \"$1\" && cmake .. && make" "--"  ,(concat
(straight--repos-dir "emacs-libvterm") "build"))

By comparison to the following working one:

("bash" "-c" "cd build && cmake .. && make")

Regards,
HZ



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-03  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-03  6:28 `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build")) Hongyi Zhao
2021-12-03  6:31 ` Hongyi Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).