Skip to content

Instantly share code, notes, and snippets.

@sergof
Last active February 13, 2019 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergof/8e9135823ff32288d19d80ad08658b06 to your computer and use it in GitHub Desktop.
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"
#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