You are not logged in.
Pages: 1
I have this patch:
--- do.c 2015-03-10 07:43:04.000000000 -0500
+++ /home/userx/Downloads/do.c 2015-03-10 13:35:58.254807970 -0500
@@ -63,6 +63,7 @@
#define FIRST_UP_HPVENDOR2 0xff010000
#define FIRST_UP_MSVENDOR 0xff000000
#define FIRST_UP_CUSTOM 0x00ff0000
+#define FIRST_UP_ASUSVENDOR 0xff310000
#define FIRST_UP_LOGIVENDOR 0xffbc0000
#define FIRST_UP_LOGIVENDOR2 0xff090000
#define FIRST_UP_LOGIVENDOR3 0xff430000how can I make so that when I run `patch -Np1 -i "this.patch"` it automatically patches at "./include/do.c" without asking me the actual path?
Last edited by EFarmer (2017-06-11 13:42:33)
Offline
Combination of the correct number of path elements to remove using the -p parameter and manually changing directory first or using
-d dir or --directory=dir
Change to the directory dir immediately, before doing anything else.
Please post code in code tags.
Offline
Combination of the correct number of path elements to remove using the -p parameter and manually changing directory first or using
man 1 patch wrote:-d dir or --directory=dir
Change to the directory dir immediately, before doing anything else.Please post code in code tags.
fixed.. So the patch command should be `patch -d ./include/ -Np1 -i "../this.patch"`?
Last edited by EFarmer (2017-06-11 13:44:38)
Offline
fixed.. So the patch command should be `patch -d ./include/ -Np1 -i "../this.patch"`?
Yes if the command worked and the result was correct.
Offline
Is there a file ./include/home/userx/Downloads/do.c and is that the file you want to patch? I doubt it.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Pages: 1