diff options
-rwxr-xr-x | contrib/kiss-cat | 2 | ||||
-rwxr-xr-x | contrib/kiss-chroot | 2 | ||||
-rwxr-xr-x | contrib/kiss-depends | 2 | ||||
-rwxr-xr-x | contrib/kiss-export | 2 | ||||
-rwxr-xr-x | contrib/kiss-fork | 2 | ||||
-rwxr-xr-x | contrib/kiss-link | 2 | ||||
-rwxr-xr-x | contrib/kiss-manifest | 2 | ||||
-rwxr-xr-x | contrib/kiss-manifest-tree | 2 | ||||
-rwxr-xr-x | contrib/kiss-new | 2 | ||||
-rwxr-xr-x | contrib/kiss-owns | 2 | ||||
-rwxr-xr-x | contrib/kiss-repodepends | 2 | ||||
-rwxr-xr-x | contrib/kiss-revdepends | 2 | ||||
-rwxr-xr-x | contrib/kiss-size | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/contrib/kiss-cat b/contrib/kiss-cat index 937b46d..7f21760 100755 --- a/contrib/kiss-cat +++ b/contrib/kiss-cat @@ -1,7 +1,7 @@ #!/bin/sh -e # Concatanate package files in the installed package database # File names are printed to stderr. -case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[musage: %s <pkg> [file] [file]\n' "${0##*/}" ; exit 0; esac +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[musage: %s [pkg] [file...]\n' "${0##*/}" ; exit 0; esac kiss l "${pkg:=$1}" >/dev/null ; shift diff --git a/contrib/kiss-chroot b/contrib/kiss-chroot index fc0e16c..7d0585c 100755 --- a/contrib/kiss-chroot +++ b/contrib/kiss-chroot @@ -5,7 +5,7 @@ log() { printf '\033[32m->\033[m %s.\n' "$*" } -usage() { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <directory>" ; exit 0 ;} +usage() { printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [dir]" ; exit 0 ;} die() { log "$*" >&2 diff --git a/contrib/kiss-depends b/contrib/kiss-depends index 0c1687e..b549ff9 100755 --- a/contrib/kiss-depends +++ b/contrib/kiss-depends @@ -1,7 +1,7 @@ #!/bin/sh -ef # Display a package's dependencies -case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 0 ; esac kiss l "$1" >/dev/null cat "$KISS_ROOT/var/db/kiss/installed/$1/depends" 2>/dev/null diff --git a/contrib/kiss-export b/contrib/kiss-export index 82406aa..c124822 100755 --- a/contrib/kiss-export +++ b/contrib/kiss-export @@ -1,7 +1,7 @@ #!/bin/sh -ef # Turn an installed package into a KISS tarball -case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 0 ; esac kiss l "${1:-null}" >/dev/null diff --git a/contrib/kiss-fork b/contrib/kiss-fork index c0fb99a..bfaaa7d 100755 --- a/contrib/kiss-fork +++ b/contrib/kiss-fork @@ -1,7 +1,7 @@ #!/bin/sh -ef # Fork a package to the current directory -case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 0 ; esac [ "$KISS_FORCE" ] || { [ -d "$1" ] && { printf '\033[1;31m!> \033[m%s\n' "$1 already exists on the current directory" \ diff --git a/contrib/kiss-link b/contrib/kiss-link index 2728fea..e5368bf 100755 --- a/contrib/kiss-link +++ b/contrib/kiss-link @@ -1,7 +1,7 @@ #!/bin/sh -ef # Link a forked package's files to the other repository -case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[musage: kiss-link [file] [file]\n' ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[musage: kiss-link [file...]\n' ; exit 0 ; esac # Check if the package exists in a repository and error out here # if it does not. The error message from the package manager will diff --git a/contrib/kiss-manifest b/contrib/kiss-manifest index 29c46ea..bb9afc8 100755 --- a/contrib/kiss-manifest +++ b/contrib/kiss-manifest @@ -1,6 +1,6 @@ #!/bin/sh -ef # Display all files owned by a package -case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 0 ; esac kiss l "$1" >/dev/null cat "$KISS_ROOT/var/db/kiss/installed/$1/manifest" 2>/dev/null diff --git a/contrib/kiss-manifest-tree b/contrib/kiss-manifest-tree index ac18b98..0cc047e 100755 --- a/contrib/kiss-manifest-tree +++ b/contrib/kiss-manifest-tree @@ -1,7 +1,7 @@ #!/bin/sh -ef # Display all files owned by a package with a tree view -case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} <pkg>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 0 ; esac kiss l "$1" >/dev/null printf '%s\n' "[$1]:" tree -C --fromfile "$KISS_ROOT/var/db/kiss/installed/$1/manifest" | sed 1,2d diff --git a/contrib/kiss-new b/contrib/kiss-new index 6d41da9..a068704 100755 --- a/contrib/kiss-new +++ b/contrib/kiss-new @@ -4,7 +4,7 @@ out() { printf '\033[1;33m-> \033[m%s\n' "$@" >&2 ;} die() { printf '\033[1;31m!> \033[m%s\n' "$@" >&2 ; exit 1 ;} -case "$1" in ''|--help|-h) out "usage: ${0##*/} <name> [version] [source]"; exit 0; esac +case "$1" in ''|--help|-h) out "usage: ${0##*/} [name] [version] [source]"; exit 0; esac [ -d "$1" ] && die "Package '$1' already exists." diff --git a/contrib/kiss-owns b/contrib/kiss-owns index 3339bb5..e14d579 100755 --- a/contrib/kiss-owns +++ b/contrib/kiss-owns @@ -1,7 +1,7 @@ #!/bin/sh -e # Check which package owns a file -case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-owns <file>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-owns [file]" ; exit 0 ; esac # Strip 'KISS_ROOT' from the file path if passed and # follow symlinks. diff --git a/contrib/kiss-repodepends b/contrib/kiss-repodepends index cbe7f43..ca72605 100755 --- a/contrib/kiss-repodepends +++ b/contrib/kiss-repodepends @@ -1,7 +1,7 @@ #!/bin/sh -e # Display a package's dependencies in the repository -case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-repodepends <pkg>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-repodepends [pkg]" ; exit 0 ; esac kiss s "$1" >/dev/null cat "$(kiss s "$1" | sed 1q)/depends" 2>/dev/null diff --git a/contrib/kiss-revdepends b/contrib/kiss-revdepends index 05fa46d..183849a 100755 --- a/contrib/kiss-revdepends +++ b/contrib/kiss-revdepends @@ -1,7 +1,7 @@ #!/bin/sh -e # Display packages which depend on package -case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-revdepends <pkg>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-revdepends [pkg]" ; exit 0 ; esac kiss s "$1" >/dev/null # 'cd' to the database directory as a simple way of diff --git a/contrib/kiss-size b/contrib/kiss-size index 0a3e851..d2e8259 100755 --- a/contrib/kiss-size +++ b/contrib/kiss-size @@ -1,7 +1,7 @@ #!/bin/sh -ef # Show the size on disk for a package -case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-size <pkg>" ; exit 0 ; esac +case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-size [pkg]" ; exit 0 ; esac kiss s "$1" >/dev/null # Filter directories from manifest and leave only files. |