|
|
|
@ -260,10 +260,11 @@ inst_rules() {
@@ -260,10 +260,11 @@ inst_rules() {
|
|
|
|
|
# general purpose installation function |
|
|
|
|
# Same args as above. |
|
|
|
|
inst() { |
|
|
|
|
if (($# != 1 && $# != 2 )); then |
|
|
|
|
derror "inst only takes 1 or 2 arguments" |
|
|
|
|
if (($# != 1 && $# != 2 && $# != 3 )); then |
|
|
|
|
derror "inst only takes 1 or 2 or 3 arguments" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
[[ "$2" = "$initdir" ]] && set $1 $3 |
|
|
|
|
for x in inst_symlink inst_script inst_binary inst_simple; do |
|
|
|
|
$x "$@" && return 0 |
|
|
|
|
done |
|
|
|
|