mirror of
https://github.com/dynup/kpatch
synced 2025-04-26 21:17:57 +00:00
kpatch: update the kpatch version and the man
This commit is contained in:
parent
4e41f39853
commit
a44fbf3f8b
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
INSTALLDIR=/var/lib/kpatch
|
INSTALLDIR=/var/lib/kpatch
|
||||||
SCRIPTDIR="$(readlink -f $(dirname $(type -p $0)))"
|
SCRIPTDIR="$(readlink -f $(dirname $(type -p $0)))"
|
||||||
|
VERSION="0.1.9"
|
||||||
|
|
||||||
usage_cmd() {
|
usage_cmd() {
|
||||||
printf ' %-20s\n %s\n' "$1" "$2" >&2
|
printf ' %-20s\n %s\n' "$1" "$2" >&2
|
||||||
@ -48,6 +49,8 @@ usage () {
|
|||||||
usage_cmd "info <module>" "show information about a patch module"
|
usage_cmd "info <module>" "show information about a patch module"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage_cmd "list" "list installed patch modules"
|
usage_cmd "list" "list installed patch modules"
|
||||||
|
echo >&2
|
||||||
|
usage_cmd "version" "display the kpatch version"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,6 +279,10 @@ case "$1" in
|
|||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"version"|"-v"|"--version")
|
||||||
|
echo "$VERSION"
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "subcommand $1 not recognized"
|
echo "subcommand $1 not recognized"
|
||||||
usage
|
usage
|
||||||
|
@ -38,6 +38,9 @@ info <module>
|
|||||||
list
|
list
|
||||||
list installed patch modules
|
list installed patch modules
|
||||||
|
|
||||||
|
version
|
||||||
|
display the kpatch version
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
kpatch-build(1)
|
kpatch-build(1)
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
|
Loading…
Reference in New Issue
Block a user