Subject: CVS commit: pkgsrc/mk/scripts
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 01/21/2006 05:24:36
Module Name:	pkgsrc
Committed By:	jlam
Date:		Sat Jan 21 05:24:36 UTC 2006

Modified Files:
	pkgsrc/mk/scripts: extract

Log Message:
Teach the extract script to simply copy the distfile over to the
current working directory by default if it can't figure out what type
of archive it is.  This handles the most common case of overriding
EXTRACT_CMD in package Makefiles, which is to copy a C file or a Perl
script over to the work directory.

Also, modify the script to allow the file format to be specified on
the command line via a -f option, which will force the extract script
to interpret the archive as the specified a format.  This covers the
case where there is a distfile with an unusual file extension that is
actually in well-known format, and we would like to just tell the
extract script which format this is.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 pkgsrc/mk/scripts/extract

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.