diff options
author | Thien-Thi Nguyen <ttn@gnuvola.org> | 2022-02-10 07:14:45 -0500 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnuvola.org> | 2022-02-10 07:14:45 -0500 |
commit | 7dcaeb5f161e455e2a3d04aaa2150fd87e1ba38c (patch) | |
tree | 4cd84c1d75a4b7bed7bb62c5ae5553ab55563eba | |
parent | dbc9c98523bff935abeda32cacfc3e52ca667bd6 (diff) | |
download | taler-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-x | bootstrap | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |