-
-
Notifications
You must be signed in to change notification settings - Fork 473
Expand file tree
/
Copy pathinstall-from-sources.sh
More file actions
executable file
·30 lines (24 loc) · 1.12 KB
/
install-from-sources.sh
File metadata and controls
executable file
·30 lines (24 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
cd "$(dirname "$0")"
source ./script/setup.sh
rebuild=1
while test $# -gt 0; do
case $1 in
--dont-rebuild) rebuild=0; shift ;;
*) echo "Unknown option $1"; exit 1 ;;
esac
done
if test $rebuild == 1; then
./build-release.sh
fi
PATH="$PATH:$(brew --prefix)/bin"
export PATH
brew list aerospace-dev-user/aerospace-dev-tap/aerospace-dev > /dev/null 2>&1 && brew uninstall aerospace-dev-user/aerospace-dev-tap/aerospace-dev # Compatibility. Drop after a while
brew list nikitabobko/local-tap/aerospace-dev > /dev/null 2>&1 && brew uninstall nikitabobko/local-tap/aerospace-dev
brew list aerospace > /dev/null 2>&1 && brew uninstall aerospace
which brew-install-path > /dev/null 2>&1 || brew install nikitabobko/tap/brew-install-path
# Override HOMEBREW_CACHE. Otherwise, homebrew refuses to "redownload" the snapshot file
# Maybe there is a better way, I don't know
rm -rf /tmp/aerospace-from-sources-brew-cache
HOMEBREW_CACHE=/tmp/aerospace-from-sources-brew-cache brew install-path ./.release/aerospace-dev.rb
rm -rf "$(brew --prefix)/Library/Taps/aerospace-dev-user" # Compatibility. Drop after a while