Simplify compile command structure
This commit is contained in:
parent
602b148fb4
commit
7923effa02
2
comfortable-swipe.compile.sh
Executable file
2
comfortable-swipe.compile.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
g++ $(dirname $0)/comfortable-swipe.cpp -std=c++11 -O2 -lxdo -Wno-unused-result -o $1
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
g++ $(dirname $0)/main.cpp -std=c++11 -O2 -lxdo -Wno-unused-result -o $1
|
|
||||||
3
install
3
install
@ -2,6 +2,7 @@
|
|||||||
# prefer running as root
|
# prefer running as root
|
||||||
DIR=$(dirname $0)
|
DIR=$(dirname $0)
|
||||||
PROGRAM=/usr/local/bin/comfortable-swipe
|
PROGRAM=/usr/local/bin/comfortable-swipe
|
||||||
|
COMPILE=$DIR/comfortable-swipe.compile.sh
|
||||||
CONF_PATH=/usr/local/share/comfortable-swipe/comfortable-swipe.conf
|
CONF_PATH=/usr/local/share/comfortable-swipe/comfortable-swipe.conf
|
||||||
DCONF_PATH=$DIR/defaults.conf
|
DCONF_PATH=$DIR/defaults.conf
|
||||||
OLD_CONF_PATH=${XDG_CONFIG_HOME:-$HOME/.config}/comfortable-swipe.conf
|
OLD_CONF_PATH=${XDG_CONFIG_HOME:-$HOME/.config}/comfortable-swipe.conf
|
||||||
@ -50,7 +51,7 @@ if [ -x "$(command -v $PROGRAM)" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# compile library
|
# compile library
|
||||||
sudo $DIR/compile.sh $PROGRAM || abort
|
sudo $COMPILE $PROGRAM || abort
|
||||||
|
|
||||||
# add permissions to input group (defer)
|
# add permissions to input group (defer)
|
||||||
# GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort
|
# GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user