]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: makefile: add a new "range" target to iteratively build all commits
authorWilly Tarreau <w@1wt.eu>
Wed, 9 Aug 2023 14:52:28 +0000 (16:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Aug 2023 16:02:30 +0000 (18:02 +0200)
commit06d34d40db701c9c3c9b623bf33ee52b3c20b159
tree5d25b8262c1450d372f4a469a4336c1dd0814ee3
parentd39a9cbd13a5e0ade1a0e69423ba0a4b61c75f7c
DEV: makefile: add a new "range" target to iteratively build all commits

This will iterate over all commits in the range passed in RANGE, or all
those from master to RANGE if no ".." exists in RANGE, and run "make all"
with the exact same variables. This aims to ease the verification that
no build failure exists inside a series. In case of error, it prints the
faulty commit and stops there with the tree checked out. Example:

  $ make-disctcc range RANGE=HEAD
  Found 14 commit(s) in range master..HEAD.
  Current branch is 20230809-plock+tbl+peers-4
  Starting to building now...
  [ 1/14 ]   392922bc5 #############################
  (...)
  Done! 14 commit(s) built successfully for RANGE master..HEAD

Maybe in the future it will automatically use HEAD as a default for RANGE
depending on the feedback.

It's not listed in the help target so as not to encourage users to try it
as it can very quickly become confusing due to the checkouts.
Makefile