all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build"))
Date: Fri, 3 Dec 2021 14:28:56 +0800	[thread overview]
Message-ID: <CAGP6PO+vYXk=4Szeia1e3D0qZ380SOB9U=Lt9L8MM8qEaOLzCA@mail.gmail.com> (raw)

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



             reply	other threads:[~2021-12-03  6:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03  6:28 Hongyi Zhao [this message]
2021-12-03  6:31 ` `("bash" "-c" "cd \"$1\" && cmake .. && make" "--" ,(concat (straight--repos-dir "emacs-libvterm") "build")) Hongyi Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGP6PO+vYXk=4Szeia1e3D0qZ380SOB9U=Lt9L8MM8qEaOLzCA@mail.gmail.com' \
    --to=hongyi.zhao@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.