Make sure the usage functions are consistent
The usage messages now begins with a "Usage:", i.e. capitalized and with a colon. Fixes FS#26956. Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
parent
2020fb406a
commit
890baf6891
|
@ -18,7 +18,7 @@ chroots='/var/lib/archbuild'
|
||||||
clean_first=false
|
clean_first=false
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage $cmd"
|
echo "Usage: $cmd"
|
||||||
echo ' -c Recreate the chroot before building'
|
echo ' -c Recreate the chroot before building'
|
||||||
echo ' -r <dir> Create chroots in this directory'
|
echo ' -r <dir> Create chroots in this directory'
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -42,7 +42,7 @@ pkgbase=${pkgbase:-$pkgname}
|
||||||
case "$cmd" in
|
case "$cmd" in
|
||||||
commitpkg)
|
commitpkg)
|
||||||
if (( $# == 0 )); then
|
if (( $# == 0 )); then
|
||||||
die 'usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
die 'Usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
||||||
fi
|
fi
|
||||||
repo="$1"
|
repo="$1"
|
||||||
shift
|
shift
|
||||||
|
@ -51,7 +51,7 @@ case "$cmd" in
|
||||||
repo="${cmd%pkg}"
|
repo="${cmd%pkg}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
die 'usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
die 'Usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ m4_include(lib/common.sh)
|
||||||
match=$1
|
match=$1
|
||||||
|
|
||||||
if [[ -z $match ]]; then
|
if [[ -z $match ]]; then
|
||||||
echo 'usage: finddeps <depname>'
|
echo 'Usage: finddeps <depname>'
|
||||||
echo ''
|
echo ''
|
||||||
echo 'Find packages that depend on a given depname.'
|
echo 'Find packages that depend on a given depname.'
|
||||||
echo 'Run this script from the top-level directory of your ABS tree.'
|
echo 'Run this script from the top-level directory of your ABS tree.'
|
||||||
|
|
|
@ -28,7 +28,7 @@ default_copy=$USER
|
||||||
src_owner=${SUDO_USER:-$USER}
|
src_owner=${SUDO_USER:-$USER}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage ${0##*/} [options] -r <chrootdir> [--] [makepkg args]"
|
echo "Usage: ${0##*/} [options] -r <chrootdir> [--] [makepkg args]"
|
||||||
echo ' Run this script in a PKGBUILD dir to build a package inside a'
|
echo ' Run this script in a PKGBUILD dir to build a package inside a'
|
||||||
echo ' clean chroot. All unrecognized arguments passed to this script'
|
echo ' clean chroot. All unrecognized arguments passed to this script'
|
||||||
echo ' will be passed to makepkg.'
|
echo ' will be passed to makepkg.'
|
||||||
|
|
|
@ -22,7 +22,7 @@ APPNAME=$(basename "${0}")
|
||||||
|
|
||||||
# usage: usage <exitvalue>
|
# usage: usage <exitvalue>
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage ${APPNAME} [options] working-dir [package-list | app]"
|
echo "Usage: ${APPNAME} [options] working-dir [package-list | app]"
|
||||||
echo ' options:'
|
echo ' options:'
|
||||||
echo ' -r <app> Run "app" within the context of the chroot'
|
echo ' -r <app> Run "app" within the context of the chroot'
|
||||||
echo ' -u Update the chroot via pacman'
|
echo ' -u Update the chroot via pacman'
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
m4_include(lib/common.sh)
|
m4_include(lib/common.sh)
|
||||||
|
|
||||||
if (( $# < 1 )); then
|
if (( $# < 1 )); then
|
||||||
echo "usage: $(basename $0) <chrootdir> <packages to rebuild>"
|
echo "Usage: $(basename $0) <chrootdir> <packages to rebuild>"
|
||||||
echo " example: $(basename $0) ~/chroot readline bash foo bar baz"
|
echo " example: $(basename $0) ~/chroot readline bash foo bar baz"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue