diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2015-02-19 15:07:35 -0500 |
---|---|---|
committer | Michael Dickens <michael.dickens@ettus.com> | 2015-02-19 15:07:35 -0500 |
commit | 245d5bea6388119571d58dc9592fa2303e1f7534 (patch) | |
tree | 71b5b4d49b433a1291071c488299cce88354e04d /volk | |
parent | 6fc8f80797a8bf0d668f425666259507af5fb958 (diff) |
cmake: In Python files only, remove all shebanging (anywhere) then prepend that used for GNU Radio.
Diffstat (limited to 'volk')
-rw-r--r-- | volk/cmake/GrPython.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/volk/cmake/GrPython.cmake b/volk/cmake/GrPython.cmake index b7b561b7b3..c3e8176493 100644 --- a/volk/cmake/GrPython.cmake +++ b/volk/cmake/GrPython.cmake @@ -199,7 +199,7 @@ function(VOLK_PYTHON_INSTALL) add_custom_command( OUTPUT ${pyexefile} DEPENDS ${pyfile} COMMAND ${PYTHON_EXECUTABLE} -c - "open('${pyexefile}','w').write('\#!${pyexe_native}\\n'+open('${pyfile}').read())" + "import re; R=re.compile('^\#!.*$\\n',flags=re.MULTILINE); open('${pyexefile}','w').write('\#!${pyexe_native}\\n'+R.sub('',open('${pyfile}','r').read()))" COMMENT "Shebangin ${pyfile_name}" VERBATIM ) |