Compare commits
2 commits
a38962782f
...
aaa7dad708
Author | SHA1 | Date | |
---|---|---|---|
aaa7dad708 | |||
c13dcf36e9 |
12 changed files with 8 additions and 7 deletions
15
bin/portzap
15
bin/portzap
|
@ -18,8 +18,9 @@ revfile="${installdir}"/.portzap
|
||||||
|
|
||||||
require_dependency()
|
require_dependency()
|
||||||
{
|
{
|
||||||
deps=$1
|
local dep
|
||||||
for dep in $deps; do
|
for i in $(seq 1 ${#}); do
|
||||||
|
eval "dep=\$${i}"
|
||||||
if ! which -s "$dep"; then
|
if ! which -s "$dep"; then
|
||||||
printerr "${dep} wasn't found on \$PATH"
|
printerr "${dep} wasn't found on \$PATH"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -49,26 +50,26 @@ case $1 in
|
||||||
"${libexec}"/commands/portzap-teardown
|
"${libexec}"/commands/portzap-teardown
|
||||||
;;
|
;;
|
||||||
"clone")
|
"clone")
|
||||||
require_dependency "git doas"
|
require_dependency git doas
|
||||||
"${libexec}"/commands/portzap-clone "${giturl}" "${gitdir}" "${defaultbranch}"
|
"${libexec}"/commands/portzap-clone "${giturl}" "${gitdir}" "${defaultbranch}"
|
||||||
;;
|
;;
|
||||||
"pull")
|
"pull")
|
||||||
require_dependency "git doas"
|
require_dependency git doas
|
||||||
"${libexec}"/commands/portzap-pull "${gitdir}"
|
"${libexec}"/commands/portzap-pull "${gitdir}"
|
||||||
;;
|
;;
|
||||||
"checkout")
|
"checkout")
|
||||||
require_dependency "git doas"
|
require_dependency git doas
|
||||||
"${libexec}"/commands/portzap-checkout "${gitdir}" "${2}"
|
"${libexec}"/commands/portzap-checkout "${gitdir}" "${2}"
|
||||||
;;
|
;;
|
||||||
"sh")
|
"sh")
|
||||||
require_dependency "doas"
|
require_dependency doas
|
||||||
"${libexec}"/commands/portzap-sh "${gitdir}"
|
"${libexec}"/commands/portzap-sh "${gitdir}"
|
||||||
;;
|
;;
|
||||||
"rm")
|
"rm")
|
||||||
"${libexec}"/commands/portzap-rm "${gitdir}" "${installdir}"
|
"${libexec}"/commands/portzap-rm "${gitdir}" "${installdir}"
|
||||||
;;
|
;;
|
||||||
"install")
|
"install")
|
||||||
require_dependency "git doas"
|
require_dependency git doas
|
||||||
"${libexec}"/commands/portzap-install "${gitdir}" "${installdir}" "${revfile}"
|
"${libexec}"/commands/portzap-install "${gitdir}" "${installdir}" "${revfile}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
0
libexec/portzap/commands/portzap-checkout
Normal file → Executable file
0
libexec/portzap/commands/portzap-checkout
Normal file → Executable file
0
libexec/portzap/commands/portzap-rm
Normal file → Executable file
0
libexec/portzap/commands/portzap-rm
Normal file → Executable file
0
libexec/portzap/commands/portzap-sh
Normal file → Executable file
0
libexec/portzap/commands/portzap-sh
Normal file → Executable file
0
libexec/portzap/functions/print.sh
Normal file → Executable file
0
libexec/portzap/functions/print.sh
Normal file → Executable file
0
libexec/portzap/setup/setup-doas
Normal file → Executable file
0
libexec/portzap/setup/setup-doas
Normal file → Executable file
0
libexec/portzap/setup/setup-user
Normal file → Executable file
0
libexec/portzap/setup/setup-user
Normal file → Executable file
0
libexec/portzap/utils/get-umask
Normal file → Executable file
0
libexec/portzap/utils/get-umask
Normal file → Executable file
0
libexec/portzap/utils/git/get-changed-files
Normal file → Executable file
0
libexec/portzap/utils/git/get-changed-files
Normal file → Executable file
0
libexec/portzap/utils/git/get-removed-files
Normal file → Executable file
0
libexec/portzap/utils/git/get-removed-files
Normal file → Executable file
0
libexec/portzap/utils/git/run
Normal file → Executable file
0
libexec/portzap/utils/git/run
Normal file → Executable file
0
libexec/portzap/utils/isportzap-member
Normal file → Executable file
0
libexec/portzap/utils/isportzap-member
Normal file → Executable file
Loading…
Reference in a new issue