bsdcat,cpio,tar: derive version string from archive.h

Reviewed by:	mm
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D27823
This commit is contained in:
Xin LI 2020-12-29 13:38:47 -08:00
parent 40c4557bee
commit 2ff66a9155
3 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,8 @@ _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive
_LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive _LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive
PROG= bsdcat PROG= bsdcat
BSDCAT_VERSION_STRING= 3.5.1 BSDCAT_VERSION_STRING!= sed -n '/define.*ARCHIVE_VERSION_ONLY_STRING/{s,[^0-9.],,gp;q;}' \
${_LIBARCHIVEDIR}/libarchive/archive.h
.PATH: ${_LIBARCHIVEDIR}/cat .PATH: ${_LIBARCHIVEDIR}/cat
SRCS= bsdcat.c cmdline.c SRCS= bsdcat.c cmdline.c

View File

@ -6,7 +6,8 @@ _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive
_LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive _LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive
PROG= bsdcpio 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 .PATH: ${_LIBARCHIVEDIR}/cpio
SRCS= cpio.c cmdline.c SRCS= cpio.c cmdline.c

View File

@ -5,7 +5,8 @@ _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive
PACKAGE= runtime PACKAGE= runtime
PROG= bsdtar PROG= bsdtar
BSDTAR_VERSION_STRING= 3.5.1 BSDTAR_VERSION_STRING!= sed -n '/define.*ARCHIVE_VERSION_ONLY_STRING/{s,[^0-9.],,gp;q;}' \
${_LIBARCHIVEDIR}/libarchive/archive.h
.PATH: ${_LIBARCHIVEDIR}/tar .PATH: ${_LIBARCHIVEDIR}/tar
SRCS= bsdtar.c \ SRCS= bsdtar.c \