Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meson project script missing #1

Closed
Pertekm opened this issue Apr 20, 2020 · 4 comments
Closed

meson project script missing #1

Pertekm opened this issue Apr 20, 2020 · 4 comments

Comments

@Pertekm
Copy link

Pertekm commented Apr 20, 2020

Can not find a meson project script (meson.build) file.
How to compile shebang with meson?

@Pertekm
Copy link
Author

Pertekm commented Apr 20, 2020

Found the file, it was deleted by commit 791e437
why?

@Pertekm
Copy link
Author

Pertekm commented Apr 20, 2020

I used the deleted meson.build file and could compile shebang.

But i do not know how to use shebang in my case:
I have a script file (named "foreman" in a bin folder) with the content
#!/bin/bash -i bin/update bundle exec foreman start -f Procfile
i would like to execute this script by command "foreman". currently i need to use the command "bash foreman" to execute it under windows.
How to execute it with help of shebang?

@matveyt
Copy link
Owner

matveyt commented Apr 20, 2020

I dropped meson.build, because I don't use it anymore. Also it does not do much here. You can compile simply in the command line, e.g.: gcc -s shebang.c -o shebang -lshlwapi as noted in README.

To use shebang make a symlink (like mklink foreman.exe shebang.exe note: usually needs administrative access), or rename, or copy. For convenience, put the symlink on Windows PATH (no matter which directory).

@matveyt
Copy link
Owner

matveyt commented May 14, 2020

meson.build is back. Closing the issue.

@matveyt matveyt closed this as completed May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants