diff options
author | Xin LI <delphij@FreeBSD.org> | 2020-12-29 21:38:47 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2021-01-11 01:22:02 +0000 |
commit | 65ca6e859780da7c483ac4f811f599248c5c45c5 (patch) | |
tree | 88fcd631a4d5bb1a2c29d30b41d79118b8812347 | |
parent | 3ad46d07830bba44c479e2d19ce376212e52e9af (diff) | |
download | src-65ca6e859780da7c483ac4f811f599248c5c45c5.tar.gz src-65ca6e859780da7c483ac4f811f599248c5c45c5.zip |
bsdcat,cpio,tar: derive version string from archive.h
(cherry picked from commit 2ff66a915526b6509ca57f2046bc7b20b0de8a61)
-rw-r--r-- | usr.bin/bsdcat/Makefile | 3 | ||||
-rw-r--r-- | usr.bin/cpio/Makefile | 3 | ||||
-rw-r--r-- | usr.bin/tar/Makefile | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/bsdcat/Makefile b/usr.bin/bsdcat/Makefile index 992874f9eac4..c2864b7e7aba 100644 --- a/usr.bin/bsdcat/Makefile +++ b/usr.bin/bsdcat/Makefile @@ -6,7 +6,8 @@ _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive _LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive PROG= bsdcat -BSDCAT_VERSION_STRING= 3.5.0 +BSDCAT_VERSION_STRING!= sed -n '/define.*ARCHIVE_VERSION_ONLY_STRING/{s,[^0-9.],,gp;q;}' \ + ${_LIBARCHIVEDIR}/libarchive/archive.h .PATH: ${_LIBARCHIVEDIR}/cat SRCS= bsdcat.c cmdline.c diff --git a/usr.bin/cpio/Makefile b/usr.bin/cpio/Makefile index 12211978fe83..ab2e6b74a897 100644 --- a/usr.bin/cpio/Makefile +++ b/usr.bin/cpio/Makefile @@ -6,7 +6,8 @@ LIBARCHIVEDIR= ${.CURDIR}/../../contrib/libarchive LIBARCHIVECONFDIR= ${.CURDIR}/../../lib/libarchive PROG= bsdcpio -BSDCPIO_VERSION_STRING= 3.5.0 +BSDCPIO_VERSION_STRING!= sed -n '/define.*ARCHIVE_VERSION_ONLY_STRING/{s,[^0-9.],,gp;q;}' \ + ${_LIBARCHIVEDIR}/libarchive/archive.h .PATH: ${LIBARCHIVEDIR}/cpio SRCS= cpio.c cmdline.c diff --git a/usr.bin/tar/Makefile b/usr.bin/tar/Makefile index 78b74cb8455a..89f42289d88b 100644 --- a/usr.bin/tar/Makefile +++ b/usr.bin/tar/Makefile @@ -4,7 +4,8 @@ LIBARCHIVEDIR= ${.CURDIR}/../../contrib/libarchive PROG= bsdtar -BSDTAR_VERSION_STRING= 3.5.0 +BSDTAR_VERSION_STRING!= sed -n '/define.*ARCHIVE_VERSION_ONLY_STRING/{s,[^0-9.],,gp;q;}' \ + ${_LIBARCHIVEDIR}/libarchive/archive.h .PATH: ${LIBARCHIVEDIR}/tar SRCS= bsdtar.c \ |