sourcezap erase -> sourcezap rm

This commit is contained in:
0x1eef 2024-05-11 23:55:58 -03:00
parent a6d734f065
commit 32a6d7a369
4 changed files with 11 additions and 11 deletions

View file

@ -35,9 +35,9 @@ the first time:
# This command requires root privileges
# sourcezap install
# Start over: erase /usr/src/ and /home/_sourcezap/src/
# Remove the contents of /usr/src/ and /home/_sourcezap/src/
# This command requires root privileges
$ sourcezap erase
$ sourcezap rm
### ENVIRONMENT

View file

@ -50,8 +50,8 @@ case $1 in
require_dependency "git doas"
"${libexec}"/sourcezap-checkout "${gitdir}" "${2}"
;;
"erase")
"${libexec}"/sourcezap-erase "${gitdir}" "${installdir}"
"rm")
"${libexec}"/sourcezap-rm "${gitdir}" "${installdir}"
;;
"install")
require_dependency "git doas"
@ -65,6 +65,6 @@ case $1 in
printf " pull Pull source tree updates\n"
printf " checkout Checkout a branch other than the default\n"
printf " install Install the source tree into /usr/src/\n"
printf " erase Erase /usr/src/ and /home/_sourcezap/src/\n"
printf " rm Remove /usr/src/ and /home/_sourcezap/src/\n"
;;
esac

View file

@ -29,9 +29,9 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi
printf "1 Erase %s\n" "${gitdir}"
printf "2 Erase %s\n" "${installdir}"
printf "3 Erase both (%s and %s)\n" "${gitdir}" "${installdir}"
printf "1 Remove the contents of %s\n" "${gitdir}"
printf "2 Remove the contents of %s\n" "${installdir}"
printf "3 Remove the contents of both (%s and %s)\n" "${gitdir}" "${installdir}"
printf "4 Do nothing\n"
printf "1-4: "
while true; do

View file

@ -14,7 +14,7 @@ sourcezap checkout
.br
sourcezap install
.br
sourcezap erase
sourcezap rm
.Sh DESCRIPTION
.Nm sourcezap
manages a copy of the HardenedBSD source tree.
@ -48,9 +48,9 @@ Install /home/_sourcezap/src/ into /usr/src/.
.br
This command requires root privileges.
.Pp
.Nm sourcezap erase
.Nm sourcezap rm
.br
Start over: erase /usr/src/ and /home/_sourcezap/src/.
Remove the contents of /usr/src/ and /home/_sourcezap/src/.
.br
This command requires root privileges.
.br