#!/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