rpmbuild - Using shebang in a spec file without it being a comment -


i need make small wrapper script around binary i'm packing in rpm. wrapper script needs "#!/bin/sh" @ top. when that, "#..." treated comment. no, don't comment that.

is there way use predefined variable or escape sequence make shebang (on first line)?

here's little code in .spec file:

%build echo #!/bin/bash                                     > foobar echo export ld_library_path=/opt/foobar/foobar/lib  >> foobar echo /opt/foobar/lib/foobar                         >> foobar echo exit $?                                        >> foobar 

... result of 1st line in %build cycle "+ echo."

must take different approach? if so, approach?

just coming question.

quote hash-bang. 'nuff said.thanks.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -