depot/pkgs/tools/X11/opentabletdriver/remove-git-from-generate-rules.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

22 lines
738 B
Diff

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