namespaces: move install command under the 'portzap' namespace
This commit is contained in:
parent
70c1ab4ca2
commit
7917204769
2 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ clone_mask=007
|
|||
pull_mask=007
|
||||
|
||||
# Commands
|
||||
. $libexec_dir/commands/install
|
||||
. $libexec_dir/commands/portzap-install
|
||||
. $libexec_dir/commands/pull
|
||||
. $libexec_dir/commands/clone
|
||||
|
||||
|
@ -33,7 +33,7 @@ case $1 in
|
|||
"install")
|
||||
require_root
|
||||
require_deps git
|
||||
install $ports_dir $portzap_dir $libexec_dir $portzap_file
|
||||
portzap_install $ports_dir $portzap_dir $libexec_dir $portzap_file
|
||||
;;
|
||||
*)
|
||||
echo "Usage: portzap clone|pull|install"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
__install_update() {
|
||||
__portzap_install_update() {
|
||||
portzap_file=$1
|
||||
ports_dir=$2
|
||||
libexec_dir=$3
|
||||
|
@ -26,7 +26,7 @@ __install_update() {
|
|||
|
||||
}
|
||||
|
||||
__install_ports() {
|
||||
__portzap_install_ports() {
|
||||
ports_dir=$1
|
||||
libexec_dir=$2
|
||||
find -s . -maxdepth 1 -type f \
|
||||
|
@ -40,16 +40,16 @@ __install_ports() {
|
|||
-exec "$libexec_dir/install-directory" "$ports_dir" "$libexec_dir" {} +
|
||||
}
|
||||
|
||||
install() {
|
||||
portzap_install() {
|
||||
ports_dir=$1
|
||||
portzap_dir=$2
|
||||
libexec_dir=$3
|
||||
portzap_file=$4
|
||||
cd "$portzap_dir" || exit 1
|
||||
if [ -e "$portzap_file" ]; then
|
||||
__install_update "$portzap_file" "$ports_dir" "$libexec_dir"
|
||||
__portzap_install_update "$portzap_file" "$ports_dir" "$libexec_dir"
|
||||
else
|
||||
__install_ports "$portzap_dir" "$libexec_dir"
|
||||
__portzap_install_ports "$portzap_dir" "$libexec_dir"
|
||||
fi
|
||||
git rev-parse HEAD > "$portzap_file"
|
||||
}
|
Loading…
Reference in a new issue