diff options
author | Xin LI <delphij@FreeBSD.org> | 2020-12-29 21:38:47 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2020-12-29 22:21:50 +0000 |
commit | 2ff66a915526b6509ca57f2046bc7b20b0de8a61 (patch) | |
tree | 1500a29c4e828ddaee5793cd91e949673f506e83 /usr.bin/cpio | |
parent | 40c4557bee27adb15bb376803dffbcd6de323b8a (diff) | |
download | src-2ff66a915526b6509ca57f2046bc7b20b0de8a61.tar.gz src-2ff66a915526b6509ca57f2046bc7b20b0de8a61.zip |
bsdcat,cpio,tar: derive version string from archive.h
Reviewed by: mm
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D27823
Diffstat (limited to 'usr.bin/cpio')
-rw-r--r-- | usr.bin/cpio/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cpio/Makefile b/usr.bin/cpio/Makefile index 6855e3e2d77e..f9f344429a91 100644 --- a/usr.bin/cpio/Makefile +++ b/usr.bin/cpio/Makefile @@ -6,7 +6,8 @@ _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive _LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive PROG= bsdcpio -BSDCPIO_VERSION_STRING= 3.5.1 +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 |