From 0e80196c5fa544a8f2ac9cb799fbe25948361831 Mon Sep 17 00:00:00 2001 From: agc Date: Thu, 1 Apr 1999 14:07:52 +0000 Subject: Rewrite the extraction commands to be more intuitive. In the vast majority of cases, nothing has changed (i.e. .tgz, .tar.gz, and .tar.bz2). EXTRACT_USING_PAX can be set as before. For custom extractions, instead of using EXTRACT_BEFORE_ARGS, EXTRACT_AFTER_ARGS and EXTRACT_CMD, simply set EXTRACT_CMD to be the command needed to decompress and extract the lements from the archive. ${DOWNLOADED_DISTFILE} can be used to reference the distfile(s). e.g. for compressed shars, where previously there was: EXTRACT_CMD= ${GZCAT} EXTRACT_BEFORE_ARGS= EXTRACT_AFTER_ARGS= |sh now use: EXTRACT_CMD= ${GZCAT} ${DOWNLOADED_DISTFILE} | ${SH} --- cross/binutils/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cross') diff --git a/cross/binutils/Makefile b/cross/binutils/Makefile index fc9c9a9739f..ebfb4958835 100644 --- a/cross/binutils/Makefile +++ b/cross/binutils/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 1999/02/18 13:46:33 tv Exp $ +# $NetBSD: Makefile,v 1.8 1999/04/01 14:07:53 agc Exp $ # # GNU binutils configured to hold `as many targets as the cross system is # capable of using'. Configures and builds everything except gas, which @@ -60,4 +60,9 @@ do-install: .include "../../mk/bsd.pkg.mk" ENABLE_TARGETS_LIST!= ${ECHO} "${ENABLE_TARGETS}" | ${SED} "s/[ ][ ]*/,/g;s/^,*//" -EXTRACT_BEFORE_ARGS:= -X ${FILESDIR}/exclude ${EXTRACT_BEFORE_ARGS} + +.if defined(EXTRACT_USING_PAX) +EXTRACT_ELEMENTS= '-s|${FILESDIR}/exclude||' +.else +EXTRACT_ELEMENTS= -X ${FILESDIR}/exclude +.endif -- cgit v1.2.3