| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sedon BSD Unix requires an argument for the -i switch. Unless you wanta backup file inemust add an empty string argument. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
It is not necessar to add ;\ at the end of each line because make runs each command step by step. So this is removed. Also echo what is done is not necessary because make prints by default each command for debug purpose. Also removed the cd <subdir> because this is brittle: If the cd commandfails the subsequent commands work in a wrong directory. Better solution is to always use theconcrete path relative to the Makefile. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
rsync is for copy files between remote machines. Since we copy files local it makes no sense to use rsync here. A simple recursive copy is well suited for this. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
The -i Switch (in place file processing) is not POSIX compliant and behaves differently on some systems: * BSD Unix: requires an argument (e.g. -i '.bak') * GNU Linux: does not allow an argument This patch introduces a platform independent way for replacing the needle stringin with the scanner name in the copied template files. The trick is to use a temporary file to save the sed result. First aproach was to use > to redirect the sed output from STDOUT into the temp file. This does not work because find's -exec does not execute a shell and executes the command directly in a forked child process. So there are no shell features like redirect or pipe. The solution is to use the sed command 'w' to write the file and supress the output on STDOUT. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
There was a problem hiding this comment.
Works under OS X and seems to do what it's supposed to do. 👍
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
This fixes #749 incompatibility with BSD Unix sed.
Checklist