aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpatch.sh12
-rwxr-xr-xsetup.sh2
-rw-r--r--src/hid-input.c2
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
diff --git a/setup.sh b/setup.sh
index 45accd7..e94e68a 100755
--- a/setup.sh
+++ b/setup.sh
@@ -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