Last active
November 24, 2021 07:31
-
-
Save nmschulte/66a0b798dded3947695ade6bbd8189f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# builds Sway w/ wlroots as "subproject" ("dev build configuration") | |
# may fail unexpectedly if the repositories are not in a suitable state | |
SWAY_DIR=$HOME/src/sway | |
WLROOTS_DIR=$SWAY_DIR/../wlroots | |
LIBSEAT_DIR=$SWAY_DIR/../seatd | |
cd $LIBSEAT_DIR | |
git checkout master | |
# git pull | |
# try to keep any existing local changes to the branch | |
git fetch origin | |
git rebase --rebase-merges --rerere-autoupdate origin/master | |
git commit --no-edit | |
git rebase --continue | |
cd $WLROOTS_DIR | |
git checkout master | |
# git pull | |
# try to keep any existing local changes to the branch | |
git fetch origin | |
git rebase --rebase-merges --rerere-autoupdate origin/master | |
git commit --no-edit | |
git rebase --continue | |
cd $SWAY_DIR | |
#git checkout master | |
#git checkout fix-tray-updates | |
git checkout feature/tray-dbus-menu | |
#git checkout swaybar-scaling-fixes | |
git pull | |
# try to keep any existing local changes to the branch | |
git fetch origin | |
git rebase --rebase-merges --rerere-autoupdate origin/master | |
git commit --no-edit | |
git rebase --continue | |
git clean -dxf | |
mkdir subprojects | |
ln -s $WLROOTS_DIR subprojects | |
ln -s $LIBSEAT_DIR subprojects | |
meson --prefix=$HOME/.local --pkg-config-path=$HOME/.local/lib/pkgconfig,$HOME/.local/lib/x86_64-linux-gnu/pkgconfig,$HOME/.local/share/pkgconfig -Dfish-completions=false -Db_sanitize=address,undefined build/ | |
#meson --prefix=$HOME/.local --pkg-config-path=$HOME/src/drm/build/meson-private,$HOME/.local/lib/x86_64-linux-gnu/pkgconfig,$HOME/.local/share/pkgconfig -Dfish-completions=false -Db_sanitize=address,undefined build/ | |
ninja -C build/ | |
#ninja -C build/ install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment