summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2022-02-10 07:14:45 -0500
committerThien-Thi Nguyen <ttn@gnuvola.org>2022-02-10 07:14:45 -0500
commit7dcaeb5f161e455e2a3d04aaa2150fd87e1ba38c (patch)
tree4cd84c1d75a4b7bed7bb62c5ae5553ab55563eba
parentdbc9c98523bff935abeda32cacfc3e52ca667bd6 (diff)
downloadtaler-util-7dcaeb5f161e455e2a3d04aaa2150fd87e1ba38c.tar.gz
taler-util-7dcaeb5f161e455e2a3d04aaa2150fd87e1ba38c.tar.bz2
taler-util-7dcaeb5f161e455e2a3d04aaa2150fd87e1ba38c.zip
[boot] Modify the configure script to DTRT
Specifically: - Look in build-system/ for configure.py, instead of cwd. - After configure.py creates config.mk, move it to build-system/. This fixes a "Failure To Configure From Source" error :-D.
-rwxr-xr-xbootstrap15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 9905660..31987eb 100755
--- a/bootstrap
+++ b/bootstrap
@@ -36,3 +36,18 @@ git submodule update --recursive
git submodule sync
cp build-system/taler-build-scripts/configure ./configure || true
cp build-system/taler-build-scripts/conf/.style.yapf .style.yapf || true
+
+# The configure script looks for configure.py in the cwd
+# (but it's not there, being instead in subdir build-system/).
+# We can either modify the configure script to look in
+# the correct directory, or copy configure.py to cwd.
+# We choose to modify, but maybe that's not the best choice.
+sed -i '/^exec/s|./|build-system/|' configure
+
+# Another wrinkle is that Makefile looks in build-system/
+# for config.mk, but the configure script places it in cwd.
+# Again, we have a choice: Either modify Makefile or modify
+# the configure script to move config.mk to the right place.
+# Since we already munged the configure script once, why not again?
+sed -i '/^exec /s///' configure
+echo 'mv config.mk build-system' >> configure