From: Grant Erickson <gerickson@nuovations.com>
To: connman@lists.linux.dev
Subject: [PATCH] Allow running bootstrap-configure from anywhere.
Date: Tue, 31 Oct 2023 21:06:16 -0700 [thread overview]
Message-ID: <E57C2057-AEAD-49B1-8577-6FD27680A4B2@nuovations.com> (raw)
Frequently it is valuable to do non-colocated source and build
directories. This updates 'bootstrap-configure' such that it may be
run in any arbitrary directory such that builds so bootstrapped and
configured may be non-colocated.
---
bootstrap-configure | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/bootstrap-configure b/bootstrap-configure
index ed5ecd78..d8c9cfce 100755
--- a/bootstrap-configure
+++ b/bootstrap-configure
@@ -1,11 +1,13 @@
#!/bin/sh
+ourdir=$(cd $(dirname "${0}") && pwd)
+
if [ -f config.status ]; then
make maintainer-clean
fi
-./bootstrap && \
- ./configure --enable-maintainer-mode \
+(cd "${ourdir}" && ./bootstrap) && \
+ "${ourdir}/configure" --enable-maintainer-mode \
--enable-debug \
--prefix=/usr \
--mandir=/usr/share/man \
--
2.42.0
next reply other threads:[~2023-11-01 4:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-01 4:06 Grant Erickson [this message]
2023-11-08 14:44 ` [PATCH] Allow running bootstrap-configure from anywhere Marcel Holtmann
2023-11-08 15:42 ` Grant Erickson
2023-11-28 17:40 ` Grant Erickson
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=E57C2057-AEAD-49B1-8577-6FD27680A4B2@nuovations.com \
--to=gerickson@nuovations.com \
--cc=connman@lists.linux.dev \
/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.
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).