Replace set-branch with checkout

This commit is contained in:
0x1eef 2024-05-11 23:32:08 -03:00
parent 270b14ed63
commit 7d440fa15c
4 changed files with 8 additions and 8 deletions

View file

@ -27,9 +27,9 @@ the first time:
# This command is delegated to the '_sourcezap' user # This command is delegated to the '_sourcezap' user
$ sourcezap pull $ sourcezap pull
# Set a branch other than the default: hardened/14-stable/master # Checkout a branch other than the default: hardened/14-stable/master
# This command is delegated to the '_sourcezap' user # This command is delegated to the '_sourcezap' user
$ sourcezap set-branch hardened/13-stable/master $ sourcezap checkout hardened/13-stable/master
# Install /home/_sourcezap/src/ into /usr/src/ # Install /home/_sourcezap/src/ into /usr/src/
# This command requires root privileges # This command requires root privileges

View file

@ -46,9 +46,9 @@ case $1 in
require_dependency "git doas" require_dependency "git doas"
"${libexec}"/sourcezap-pull "${gitdir}" "${libexec}"/sourcezap-pull "${gitdir}"
;; ;;
"set-branch") "checkout")
require_dependency "git doas" require_dependency "git doas"
"${libexec}"/sourcezap-setbranch "${gitdir}" "${2}" "${libexec}"/sourcezap-checkout "${gitdir}" "${2}"
;; ;;
"erase") "erase")
"${libexec}"/sourcezap-erase "${gitdir}" "${installdir}" "${libexec}"/sourcezap-erase "${gitdir}" "${installdir}"
@ -63,7 +63,7 @@ case $1 in
printf "Commands:\n" printf "Commands:\n"
printf " clone Clone the HardenedBSD source tree\n" printf " clone Clone the HardenedBSD source tree\n"
printf " pull Pull source tree updates\n" printf " pull Pull source tree updates\n"
printf " set-branch Set a branch other than the default\n" printf " checkout Checkout a branch other than the default\n"
printf " install Install the source tree into /usr/src/\n" printf " install Install the source tree into /usr/src/\n"
printf " erase Erase /usr/src/ and /home/_sourcezap/src/\n" printf " erase Erase /usr/src/ and /home/_sourcezap/src/\n"
;; ;;

View file

@ -10,7 +10,7 @@ sourcezap clone
.br .br
sourcezap pull sourcezap pull
.br .br
sourcezap set-branch sourcezap checkout
.br .br
sourcezap install sourcezap install
.br .br
@ -36,9 +36,9 @@ Pull updates into /home/_sourcezap/src/.
.br .br
This command is delegated to the '_sourcezap' user. This command is delegated to the '_sourcezap' user.
.Pp .Pp
.Nm sourcezap set-branch .Nm sourcezap checkout
.br .br
Set a branch other than the default: hardened/14-stable/master. Checkout a branch other than the default: hardened/14-stable/master.
.br .br
This command is delegated to the '_sourcezap' user. This command is delegated to the '_sourcezap' user.
.Pp .Pp