Skip to content

Commit 5773bda

Browse files
committed
etc: Port iptsd-find-hidraw to iptsd-foreach
Also add a deprecation notice, since it can't handle multiple devices.
1 parent 14171cb commit 5773bda

File tree

3 files changed

+18
-47
lines changed

3 files changed

+18
-47
lines changed

etc/iptsd-find-hidraw

-46
This file was deleted.

etc/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ install_subdir(
55
)
66

77
install_data(
8-
'iptsd-find-hidraw',
8+
'scripts/iptsd-find-hidraw',
99
install_dir: bindir,
1010
install_mode: 'rwxr-xr-x',
1111
)

etc/scripts/iptsd-find-hidraw

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
set -euo pipefail
5+
6+
function run-iptsd-find-hidraw() {
7+
local -r script_dir="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
8+
9+
source "${script_dir}/iptsd-foreach"
10+
11+
spdlog warn "iptsd-find-hidraw is deprecated, please use iptsd-foreach"
12+
run-iptsd-foreach -t touchscreen -i 0 -- echo {}
13+
}
14+
15+
if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
16+
run-iptsd-find-hidraw "$@"
17+
fi

0 commit comments

Comments
 (0)