kpatch: update the kpatch version and the man

This commit is contained in:
Gaetan Trellu 2014-07-25 09:33:41 -04:00
parent 4e41f39853
commit a44fbf3f8b
2 changed files with 10 additions and 0 deletions

View File

@ -25,6 +25,7 @@
INSTALLDIR=/var/lib/kpatch
SCRIPTDIR="$(readlink -f $(dirname $(type -p $0)))"
VERSION="0.1.9"
usage_cmd() {
printf ' %-20s\n %s\n' "$1" "$2" >&2
@ -48,6 +49,8 @@ usage () {
usage_cmd "info <module>" "show information about a patch module"
echo >&2
usage_cmd "list" "list installed patch modules"
echo >&2
usage_cmd "version" "display the kpatch version"
exit 1
}
@ -276,6 +279,10 @@ case "$1" in
usage
;;
"version"|"-v"|"--version")
echo "$VERSION"
;;
*)
echo "subcommand $1 not recognized"
usage

View File

@ -38,6 +38,9 @@ info <module>
list
list installed patch modules
version
display the kpatch version
.SH SEE ALSO
kpatch-build(1)
.SH BUGS