-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix focus model and cfg * Update some comments * Update changelog, add some docs and cfg validation as an arg * Restructure and make compat with x11rb change * Update build script for perf test * Remove some debug prints and fix a reply leak * Report debug on missing config
- Loading branch information
1 parent
d2614b6
commit 3643e14
Showing
26 changed files
with
899 additions
and
389 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
set -e | ||
POSITIONAL_ARGS=() | ||
MODE="dev" | ||
INSTALL_PATH="$HOME/.cargo/bin/pgwm" | ||
FEATURES="debug" | ||
while [[ $# -gt 0 ]]; do | ||
case $1 in | ||
-d) | ||
MODE="dev" | ||
shift # past argument | ||
;; | ||
-l) | ||
MODE="lto" | ||
FEATURES="default" | ||
shift # past argument | ||
;; | ||
--perf) | ||
MODE="lto" | ||
FEATURES="xinerama,config-file --no-default-features" | ||
shift # past argument | ||
;; | ||
-p) | ||
INSTALL_PATH="$2" | ||
shift # past argument | ||
shift # past value | ||
;; | ||
-*|--*) | ||
echo "Unknown option $1" | ||
exit 1 | ||
;; | ||
*) | ||
POSITIONAL_ARGS+=("$1") # save positional arg | ||
shift # past argument | ||
;; | ||
esac | ||
done | ||
|
||
echo "MODE = ${MODE}" | ||
echo "INSTALL_PATH = ${INSTALL_PATH}" | ||
|
||
if [[ "dev" == $MODE ]]; then | ||
cargo b -p pgwm --profile $MODE --features $FEATURES && install target/debug/pgwm "$INSTALL_PATH" | ||
exit 0 | ||
fi | ||
|
||
if [[ "lto" == $MODE ]]; then | ||
/usr/bin/cargo b -p pgwm --profile "$MODE" --features $FEATURES --target x86_64-unknown-linux-musl && install target/x86_64-unknown-linux-musl/lto/pgwm "$INSTALL_PATH" | ||
exit 0 | ||
fi | ||
|
||
if [[ "lto" == $MODE ]]; then | ||
/usr/bin/cargo b -p pgwm --profile "$MODE" --features $FEATURES --target x86_64-unknown-linux-musl && install target/x86_64-unknown-linux-musl/lto/pgwm "$INSTALL_PATH" | ||
exit 0 | ||
fi |
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.