Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!

2013-09-10 Thread John Hein
O. Hartmann wrote at 01:51 +0200 on Sep 10, 2013: sed -i -e 's/\(\virtual_address, size,\) \(VMFS_ANY_SPACE,\)$/ \ \1 0, \2/' work/NVIDIA-FreeBSD-x86_64-325.15/src/nvidia_subr.c In a makefile shell command, you have to escape $ signs if you want them to be used as $ signs in the shell

Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!

2013-09-10 Thread O. Hartmann
On Tue, 10 Sep 2013 08:16:18 -0600 John Hein jh...@symmetricom.com wrote: O. Hartmann wrote at 01:51 +0200 on Sep 10, 2013: sed -i -e 's/\(\virtual_address, size,\) \(VMFS_ANY_SPACE,\)$/ \ \1 0, \2/' work/NVIDIA-FreeBSD-x86_64-325.15/src/nvidia_subr.c In a makefile shell command, you

Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!

2013-09-10 Thread O. Hartmann
On Tue, 10 Sep 2013 09:50:05 -0600 John Hein jh...@symmetricom.com wrote: O. Hartmann wrote at 16:26 +0200 on Sep 10, 2013: On Tue, 10 Sep 2013 08:16:18 -0600 John Hein jh...@symmetricom.com wrote: You want to use $$/ instead of $/ : .if ${OSVERSION} 153

Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!

2013-09-10 Thread David Wolfskill
On Tue, Sep 10, 2013 at 09:50:05AM -0600, John Hein wrote: ... Actually I should have said you want: .if ${OSVERSION} 155 The API change to vm_map_find was made between shortly before 155. ... Errr... well, that's not quite what I see; here are the last several lines from

Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!

2013-09-10 Thread Ivan Klymenko
В Tue, 10 Sep 2013 17:55:44 +0200 O. Hartmann ohart...@zedat.fu-berlin.de пишет: On Tue, 10 Sep 2013 09:50:05 -0600 John Hein jh...@symmetricom.com wrote: O. Hartmann wrote at 16:26 +0200 on Sep 10, 2013: On Tue, 10 Sep 2013 08:16:18 -0600 John Hein jh...@symmetricom.com wrote:

Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!

2013-09-10 Thread John Hein
John Hein wrote at 10:07 -0600 on Sep 10, 2013: O. Hartmann wrote at 17:55 +0200 on Sep 10, 2013: On Tue, 10 Sep 2013 09:50:05 -0600 John Hein jh...@symmetricom.com wrote: Actually I should have said you want: .if ${OSVERSION} 155 The API change to

Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!

2013-09-10 Thread John Hein
O. Hartmann wrote at 17:55 +0200 on Sep 10, 2013: On Tue, 10 Sep 2013 09:50:05 -0600 John Hein jh...@symmetricom.com wrote: Actually I should have said you want: .if ${OSVERSION} 155 The API change to vm_map_find was made between shortly before 155. I'm on

Re: HELP! nvidia-driver patch: Weird REPLACE_CMD and command-line-sed behaviour. HELP!

2013-09-10 Thread John Hein
O. Hartmann wrote at 16:26 +0200 on Sep 10, 2013: On Tue, 10 Sep 2013 08:16:18 -0600 John Hein jh...@symmetricom.com wrote: You want to use $$/ instead of $/ : .if ${OSVERSION} 153 ${REINPLACE_CMD} -e 's/\(\virtual_address, size,\) \ \(VMFS_ANY_SPACE,\)$$/\1