towngolf/how.html

20 lines
745 B
HTML
Raw Permalink Normal View History

2021-03-29 17:45:32 +00:00
<h1>how to join</h1>
<p>
in short: put your file in ~/golf/<i>[challenge_name]</i>/. ensure that it's
executable (chmod +x your_file) and that it has a shebang
</p><hr><p>
shebangs are those lines at the beginning of scripts that look like
<code>#!/this</code>. they contain the path to the interpreter for the language
that you're using, so people can launch them easily. some examples are:
<ul>
<li>for ruby - #!/usr/bin/ruby</li>
<li>for python - #!/usr/bin/python</li>
</ul>
if you don't know where the interpreter is, you can use the <code>whereis</code>
command. if you want to use a compiled language, such as C, you have to use a
wrapper script. here are the ones that i know of:
<ul>
<li>for C/C++ - #!/home/dzwdz/bin/c</li>
</ul>
</p>