diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-03-18 21:11:15 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2025-03-18 21:11:15 +1100 |
| commit | 4ab8f4a49a618da71f1aa1fc6f0267d5850d8424 (patch) | |
| tree | ae81257738de55a23dd82380f2ce0edb66a79e2b | |
| parent | 08e14c8f182767fd5c1f977288ee998206bb9994 (diff) | |
Add setup/patch scripts
| -rwxr-xr-x | patch.sh | 12 | ||||
| -rwxr-xr-x | setup.sh | 2 | ||||
| -rw-r--r-- | src/hid-input.c | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/patch.sh b/patch.sh new file mode 100755 index 0000000..c78e526 --- /dev/null +++ b/patch.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Setup creates a symlink - we have to replace it with the +# actual file for git diff to work. + +set -x + +rm ./linux/drivers/hid/hid-input.c +cp ./src/hid-input.c ./linux/drivers/hid/hid-input.c + +cd ./linux +git diff >> ../fastmouse.patch @@ -2,6 +2,8 @@ # Setup for compile time checks of fastmouse for linux build. +set -x + rm "${PWD}"/linux/drivers/hid/hid-input.c ln -s "${PWD}"/src/hid-input.c "${PWD}"/linux/drivers/hid/hid-input.c diff --git a/src/hid-input.c b/src/hid-input.c index e00b173..7cd438c 100644 --- a/src/hid-input.c +++ b/src/hid-input.c @@ -21,8 +21,6 @@ #include <linux/hid.h> #include <linux/hid-debug.h> -// FASTMOUSE SRC - #include "hid-ids.h" #define unk KEY_UNKNOWN |
