about summary refs log tree commit diff
path: root/pkgs/tools/X11/opentabletdriver/remove-git-from-generate-rules.patch
blob: 6881cc7773702a541269358ad17ca6b0cd1e1ead (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/generate-rules.sh b/generate-rules.sh
index ce6c3f3d..a0266612 100755
--- a/generate-rules.sh
+++ b/generate-rules.sh
@@ -8,7 +8,7 @@ print_help() {
   echo "  -h, --help                              Print this help message"
 }
 
-for c in git jq tr awk sed; do
+for c in jq tr awk sed; do
   command -v $c > /dev/null
   if [[ $? > 0 ]]; then
     echo "Error: Command $c not found in \$PATH." >&2
@@ -23,7 +23,7 @@ tohex() {
 shopt -s globstar
 set -eu
 
-OTD_CONFIGURATIONS="${OTD_CONFIGURATIONS:="$(git rev-parse --show-toplevel)/OpenTabletDriver.Configurations/Configurations"}"
+OTD_CONFIGURATIONS="${OTD_CONFIGURATIONS:="$src/OpenTabletDriver.Configurations/Configurations"}"
 
 while [ $# -gt 0 ]; do
   case "$1" in