Subject: CVS commit: pkgsrc/mk/scripts
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: pkgsrc-changes
Date: 02/04/2006 18:06:47
Module Name:	pkgsrc
Committed By:	rillig
Date:		Sat Feb  4 18:06:47 UTC 2006

Modified Files:
	pkgsrc/mk/scripts: extract

Log Message:
- Added "set -e" at the top of the file to prevent uncontrolled execution.
- Added "set -u" at the top of the file to prevent spelling errors.
- Renamed UNZIP to UNZIP_CMD, since that is used by the rest of pkgsrc.
- Found a singleton use of $extract_options and replaced it with
  ${EXTRACT_OPTS_LHA}.
- Took the default assignment for TMPDIR out of the block. All other
  entries are tools.
- Removed unnecessary variables.
- Make sure that distfile can always be resolved, even if the current
  working directory is changed.
- Provide default values for all EXTRACT_OPTS_* variables, as close as
  possible to the point where they are used.
- Replaced all "$@" with ${1+"$@"} to avoid errors when no parameters are
  given.
- Made the removal of the temporary file for .tar extraction more robust.


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

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