testing new echo functions
This commit is contained in:
parent
17fa06a193
commit
6bc6c66649
1 changed files with 27 additions and 22 deletions
49
rofi.sh
49
rofi.sh
|
@ -100,6 +100,32 @@
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rofi_clone_and_build() {
|
||||||
|
local rofiTemp="$(mktemp -d)"
|
||||||
|
echo_pkg clone "Cloning rofi to $rofiTemp/rofi"
|
||||||
|
|
||||||
|
git clone --depth=1 https://github.com/A417ya/rofi-wayland "$rofiTemp/rofi"
|
||||||
|
|
||||||
|
sleep 0.2
|
||||||
|
|
||||||
|
cd "$rofiTemp/rofi"
|
||||||
|
|
||||||
|
# echo_error "DEBUG: "
|
||||||
|
# ls
|
||||||
|
|
||||||
|
echo_pkg build "Building $PACKAGE now.."
|
||||||
|
|
||||||
|
run meson setup build
|
||||||
|
|
||||||
|
run ninja -C build
|
||||||
|
|
||||||
|
echo_pkg install "Installing $PACKAGE"
|
||||||
|
ninja -C build install
|
||||||
|
|
||||||
|
echo_note "Cleaning up old $rofiTemp directory.."
|
||||||
|
rm -rf $rofiTemp
|
||||||
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if $silent; then
|
if $silent; then
|
||||||
echo_warning "Executing script silently!"
|
echo_warning "Executing script silently!"
|
||||||
|
@ -109,28 +135,7 @@
|
||||||
echo_error "Error when installing dependencies.."
|
echo_error "Error when installing dependencies.."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local rofiTemp="$(mktemp -d)"
|
rofi_clone_and_build
|
||||||
if ! command_exists rofi; then
|
|
||||||
echo_info "Cloning rofi to $rofiTemp/rofi"
|
|
||||||
|
|
||||||
git clone --depth=1 https://github.com/A417ya/rofi-wayland "$rofiTemp/rofi"
|
|
||||||
|
|
||||||
sleep 0.2
|
|
||||||
|
|
||||||
cd "$rofiTemp/rofi"
|
|
||||||
|
|
||||||
echo_error "DEBUG: "
|
|
||||||
ls
|
|
||||||
|
|
||||||
run meson setup build
|
|
||||||
|
|
||||||
run ninja -C build
|
|
||||||
|
|
||||||
ninja -C build install
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo_note "Cleaning up old $rofiTemp directory.."
|
|
||||||
rm -rf $rofiTemp
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if getImports; then
|
if getImports; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue