Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions Completion/Unix/Command/_install
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ else
)
[[ $OSTYPE == dragonfly* ]] && args+=(
'!-D+[no effect (compatibility with NetBSD)]: :_directories'
'-L+[use user/group database files from specified directory]: :_directories'
'-l[fall back to system files if user/group not found in -L directory]'
'-M[disable use of mmap(2)]'
'-S[use temporary files to perform safe copy]'
)
[[ $OSTYPE == netbsd* ]] && args+=(
[[ $OSTYPE == netbsd* ]] && args=(
# NetBSD has no -C
${args##((#s)|*\))(\*|)-C*}
'-a+[specify shell command to run on files after install]:shell command'
'-r[use temporary files to perform safe copy]'
'-S+[specify arguments to pass to strip program]:arguments to strip program'
Expand All @@ -61,23 +63,23 @@ else
[[ $OSTYPE == openbsd* ]] && args+=(
'-D[create all leading destination path components]'
'-F[flush installed file contents to disk]'
'!-S[no effect (supported for compatibility)]'
)
[[ $OSTYPE == (darwin|dragonfly)* ]] && args+=(
'-M[disable use of mmap(2)]'
)
[[ $OSTYPE == (dragonfly|freebsd|netbsd)* ]] && args+=(
[[ $OSTYPE == (darwin|dragonfly|freebsd|netbsd)* ]] && args+=(
'(-C -c --compare)-l+[link files (rather than copy) using specified method]: :->linkflags'
'+N+[use user/group database files from specified directory]: :_directories'
'-U[indicate that install is unprivileged]'
)
[[ $OSTYPE == (freebsd|netbsd)* ]] && args+=(
[[ $OSTYPE == (dragonfly|freebsd|netbsd)* ]] && args+=(
'-N+[use user/group database files from specified directory]: :_directories'
)
[[ $OSTYPE == (darwin|freebsd|netbsd)* ]] && args+=(
'-D+[specify destination directory used for metadata log]: :_directories'
'-h+[store digest in metadata log using specified method]: :->digests'
'-M+[log mtree(8) metadata for installed files to specified file]:metadata log file:_files'
'-T+[specify mtree(8) tags to store in metadata log]:mtree(8) tags'
)
[[ $OSTYPE == netbsd* ]] || args+=(
'-S[use temporary files to perform safe copy]'
[[ $OSTYPE == (darwin|freebsd)* ]] && args+=(
'-S[flush each file to disk after copying]'
)
fi

Expand All @@ -95,7 +97,8 @@ case $state in
_describe -t controls 'version control method' tmp && ret=0
;;
digests)
tmp=( none md5 rmd160 sha1 sha256 sha512 )
tmp=( none sha1 sha256 sha512 )
[[ $OSTYPE == (free|net)bsd* ]] && tmp+=( md5 rmd160 )
[[ $OSTYPE == netbsd* ]] && tmp+=( sha384 )
_values 'digest method' $tmp && ret=0
;;
Expand Down