core-lightning/tools
Chris Guida c7189f644a make: Change mv to mv -f when replacing tools/headerversions file
Whenever we build without `make clean` first, this file gets
overwritten. It asks the user for input because it is not run with
`-f`. This causes the build to hang until the user inputs `y`.

Here is an example build:

```
$ make -j7 && sudo make install
CC: cc -DCLN_NEXT_VERSION="v24.08" -DPKGLIBEXECDIR="/usr/local/libexec/c-lightning" -DBINDIR="/usr/local/bin" -DPLUGINDIR="/usr/local/libexec/c-lightning/plugins" -DCCAN_TAL_NEVER_RETURN_NULL=1 -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror -Wno-maybe-uninitialized -Wshadow=local -std=gnu11 -g -fstack-protector-strong -Og -I ccan -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbacktrace/ -I external/gheap/ -I external/build-x86_64-linux-gnu/libbacktrace-build -I external/libsodium/src/libsodium/include -I external/libsodium/src/libsodium/include/sodium -I external/build-x86_64-linux-gnu/libsodium-build/src/libsodium/include -I . -I/usr/local/include  -I/usr/include/postgresql    -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS  -DCOMPAT_V052=1 -DCOMPAT_V060=1 -DCOMPAT_V061=1 -DCOMPAT_V062=1 -DCOMPAT_V070=1 -DCOMPAT_V072=1 -DCOMPAT_V073=1 -DCOMPAT_V080=1 -DCOMPAT_V081=1 -DCOMPAT_V082=1 -DCOMPAT_V090=1 -DCOMPAT_V0100=1 -DCOMPAT_V0121=1  -c -o
LD: cc   -Og  config.vars  -Lexternal/build-x86_64-linux-gnu -lwallycore -lsecp256k1 -ljsmn -lbacktrace -lsodium -L/usr/local/include -lm -lsqlite3   -L/usr/lib/x86_64-linux-gnu -lpq -o
mv: replace 'tools/headerversions', overriding mode 0755 (rwxr-xr-x)? cc lightningd/test/run-check_node_announcement.c
cc lightningd/test/run-find_my_abspath.c
cc lightningd/test/run-invoice-select-inchan.c
cc lightningd/test/run-jsonrpc.c
cc lightningd/test/run-log_filter.c
cc lightningd/test/run-log-pruning.c
cc lightningd/test/run-shuffle_fds.c
ld lightningd/test/run-find_my_abspath
ld lightningd/test/run-log-pruning
ld lightningd/test/run-check_node_announcement
ld lightningd/test/run-log_filter
ld lightningd/test/run-jsonrpc
ld lightningd/test/run-shuffle_fds
ld lightningd/test/run-invoice-select-inchan
^Cmake: *** [tools/Makefile:16: tools/headerversions] Interrupt
```

One workaround is to just know that you need to enter `y` here.
But the best solution is probably to update the Makefile like so.

Changelog-None
2024-10-14 15:00:36 +10:30
..
gen tools: remove optional csv field handling. 2023-05-23 09:34:08 +09:30
test tools: remove DEVELOPER. 2023-09-21 20:08:24 +09:30
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
bench-gossipd.sh devtools/gossipwith: use timestamp filter message not obsolete INIT_ROUTING_SYNC. 2024-06-19 15:54:24 +09:30
build-release.sh script: Added caching option for docker publish and shellcheck fixes 2024-06-13 11:43:37 +09:30
check-bolt.c tools/check-bolt: rewrite to give more accurate diagnostics when we're out of sync. 2024-06-19 15:54:24 +09:30
check-includes.sh tools/check-includes.sh: make shellcheck happy. 2021-12-06 10:05:39 +10:30
check-manpage.sh lightningd: add --developer runtime option. 2023-09-21 20:08:24 +09:30
check-setup_locale.sh setup: add setup to make checks 2020-05-19 13:35:42 +09:30
check-spelling.sh tools: allow spelling of HtlcTlv 2024-05-17 16:30:43 +02:00
docker-entrypoint.sh Docker: run directory for post-start if present. 2023-03-23 16:43:07 +10:30
fromschema.py script: Auto generate rpc examples for documentation 2024-08-09 23:56:45 -07:00
generate-wire.py bitcoin/short_channel_id: pass by copy everywhere. 2024-03-20 13:51:48 +10:30
headerversions.c gossipd: drop zlib support. 2024-07-10 12:21:19 +09:30
hsmtool.c hsmtool: provide nodeid from hsm secret. 2024-09-25 12:07:40 -07:00
Makefile make: Change mv to mv -f when replacing tools/headerversions file 2024-10-14 15:00:36 +10:30
md2man.sh docs: Removed example usage 2024-06-22 17:02:33 +02:00
mockup.sh update-mocks: handle missing deprecated_apis. 2022-07-09 09:59:52 +09:30
reckless reckless: correct logging levels 2024-08-08 11:33:39 +09:30
refresh-submodules.sh make: have git submodule update be recursive 2020-12-11 13:20:54 +01:00
repro-build.sh github: Read tag on HEAD in Github Actions 2024-09-05 12:31:49 -07:00
update-mocks.sh tools: make sure we don't use optimization when building mocks. 2023-10-23 15:48:50 +10:30