all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

* Re: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Hongyi Zhao @ 2021-12-03  6:31 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, Dec 3, 2021 at 2:28 PM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> 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"))

This method is based on the suggestion given by Radon Rosborough here [1]:

I'd recommend (untested):

`("bash" "-c" "cd \"$1\" && whatever-command" "--" ,some-other-directory)

[1] https://github.com/raxod502/straight.el/issues/800#issuecomment-933009729



^ 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.