wip
This commit is contained in:
parent
3ce5dc4ad6
commit
2bd93fcadb
1 changed files with 4 additions and 4 deletions
|
@ -26,9 +26,9 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checkAndInstall() {
|
checkAndInstall() {
|
||||||
for deps in "${1[@]}"; do
|
for deps in "$@"; do
|
||||||
if ! command_exists $deps; then
|
if ! command_exists $deps; then
|
||||||
_install "$1"
|
_install "$deps"
|
||||||
else
|
else
|
||||||
echo_note "skipping $deps - as is already installed.."
|
echo_note "skipping $deps - as is already installed.."
|
||||||
fi
|
fi
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
cloneSources(){
|
cloneSources() {
|
||||||
local cloneDir="$(mktemp -d)"
|
local cloneDir="$(mktemp -d)"
|
||||||
cd $cloneDir || mkdir $cloneDir && cd $cloneDir
|
cd $cloneDir || mkdir $cloneDir && cd $cloneDir
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
makeInstall(){
|
makeInstall() {
|
||||||
if make CMAKE_BUILD_TYPE=RelWithDebInfo; then
|
if make CMAKE_BUILD_TYPE=RelWithDebInfo; then
|
||||||
$_sudo make install
|
$_sudo make install
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue