Last active
February 13, 2019 14:27
-
-
Save sergof/8e9135823ff32288d19d80ad08658b06 to your computer and use it in GitHub Desktop.
A way of embedding build instructions inside a C file in a bash environment, so they can act as "scripts"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if 0 | |
cc ${0} -o _script_ | |
./_script_ "${@}" | |
ret=$? | |
rm _script_ | |
exit $ret | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment