Install all specified tools on one line for homebrew formula
This commit is contained in:
parent
a32747298c
commit
2b0d1cf653
|
@ -74,14 +74,16 @@ copyManpage()
|
||||||
response=$( echo "$@" | grep -Eo "\-\-prefix")
|
response=$( echo "$@" | grep -Eo "\-\-prefix")
|
||||||
|
|
||||||
if [[ $response == "--prefix" ]]; then
|
if [[ $response == "--prefix" ]]; then
|
||||||
prefix=$(echo -n "$@" | sed -e 's/--prefix=\(.*\) .*/\1/')
|
prefix=$(echo -n "$@" | sed -e 's/--prefix=\(.*\) .*/\1/' | grep -Eo "^[a-z/A-Z=]*")
|
||||||
mkdir -p $prefix/bin $prefix/share/man/man1
|
mkdir -p $prefix/bin $prefix/share/man/man1
|
||||||
if [[ $2 == "all" ]];then
|
if [[ $2 == "all" ]];then
|
||||||
for tool in "${tools[@]}"; do
|
for tool in "${tools[@]}"; do
|
||||||
singleInstall $tool || exit 1
|
singleInstall $tool || exit 1
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
singleInstall $2 || exit 1
|
for tool in "${@:2}"; do
|
||||||
|
singleInstall $tool || exit 1
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
copyManpage || exit 1
|
copyManpage || exit 1
|
||||||
elif [[ $# == 0 ]]; then
|
elif [[ $# == 0 ]]; then
|
||||||
|
|
Loading…
Reference in New Issue