diff options
| author | Thomas Zander <riggs@FreeBSD.org> | 2014-07-12 09:31:02 +0000 |
|---|---|---|
| committer | Thomas Zander <riggs@FreeBSD.org> | 2014-07-12 09:31:02 +0000 |
| commit | 79c08ab7c54152025d78974d8c962d0e7a2217df (patch) | |
| tree | 2639005826cf8a7dfb7ed3fb124c9f5c11bd2e5d /sysutils/radmind/files/patch-contrib__specialist | |
| parent | - Stagify (diff) | |
- Update to new revision 2014052201
- Stagify
- Add LICENSE*
- Remove IGNORE_TIMESTAMPS option
- Handle file ownerships via pkg-plist macros
- Silence superfluous warnings
- Handle stripping of installed binaries
- Pet portlint
PR: 190120
Submitted by: mikeg@bsd-box.net (maintainer)
Reviewed by: riggs
Approved by: mentors (implicit), maintainer (timeout)
Diffstat (limited to 'sysutils/radmind/files/patch-contrib__specialist')
| -rw-r--r-- | sysutils/radmind/files/patch-contrib__specialist | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/sysutils/radmind/files/patch-contrib__specialist b/sysutils/radmind/files/patch-contrib__specialist new file mode 100644 index 000000000000..f882db8aec0d --- /dev/null +++ b/sysutils/radmind/files/patch-contrib__specialist @@ -0,0 +1,82 @@ +--- ./contrib/specialist.orig 2014-06-29 12:15:04.244544161 +0200 ++++ ./contrib/specialist 2014-06-29 12:15:04.245544128 +0200 +@@ -0,0 +1,79 @@ ++#! /bin/sh ++ ++# specialist: assist creation of special files. ++ ++PATH=/bin:/usr/bin:/usr/local/bin; export PATH ++ ++SCRIPT=`basename "$0"` ++INPUT_FORMAT=${INPUT_FORMAT:=path} ++ ++usage() { ++ echo "usage: ${SCRIPT} [ -T ]" 1>&2 ++ exit 1 ++} ++ ++die() { ++ msg=$* ++ ++ echo "${msg}" 1>&2 ++ exit 2 ++} ++ ++# create a special transcript line for the given path. ++specialize() { ++ local path="$1" ++ ++ [ -n "${path}" -a -f "${path}" ] || die "Invalid path: ${path}" ++ ++ fsdiff -1 -c sha1 "${path}" ++ return $? ++} ++ ++specialize_transcript() { ++ local path="" ++ status=0 ++ ++ while read type path remainder; do ++ if [ x"${type}" != x"f" ]; then ++ continue ++ fi ++ ++ specialize "${path}" ++ done ++} ++ ++specialize_paths() { ++ local path="" ++ status=0 ++ ++ while read path; do ++ specialize "${path}" ++ if [ $? -ne 0 ]; then ++ status=1 ++ fi ++ done ++ ++ return "${status}" ++} ++ ++while getopts T opt; do ++ case $opt in ++ T) ++ INPUT_FORMAT="transcript" ++ ;; ++ ++ *) ++ usage ++ ;; ++ ++ esac ++done ++shift $((OPTIND - 1)) ++ ++if [ x"${INPUT_FORMAT}" = x"transcript" ]; then ++ specialize_transcript ++else ++ specialize_paths ++fi ++ ++exit $? |
