]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Makefile.in: Add the build for release candidates
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 30 May 2021 08:40:53 +0000 (10:40 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 30 May 2021 08:51:27 +0000 (10:51 +0200)
It adds rcX suffix to the version.
This avoid to manually update 'VERSION' and 'configure'.
Same as for libpcap.

(cherry picked from commit 4356f99512f7a4fd6ff8780b1e75aa102aaf3402)

Makefile.in

index 5fbccaf2231a1f9ed69d45f79935eb5af212b281..f7589dd8a4057056d49551b7f3f10faf83c33ce6 100644 (file)
@@ -464,6 +464,12 @@ releasetar:
           tar -c -z -f $$name.tar.gz $$name; \
           rm -rf $$name
 
+rc1 rc2 rc3 rc4 rc5:
+       @VER=`cat $(srcdir)/VERSION`; \
+       sed -i "s/$$VER/$${VER}$@/" VERSION ; \
+       make releasetar; \
+       git checkout VERSION configure
+
 testlist:
        echo $(TEST_DIST)