shin
include shell files
built to scratch a personal itch. SHIN is an awk(1) script that plops include files in to .shin files.
recently rewritten. now use it like this:
#!/bin/sh
. shin # if shin is in $PATH this should Just Work(TM)
do_stuff_here
shin included_file
other_stuff
you can run the above script itself, or you can “compile” it by running shin -c <script>
, which will insert included_file
in the correct spot in the file and remove the . shin
line (only if it’s by itself, which really it should be).
build a shell file
use the program shinb
to build a shell file on the command line. You don’t need to include -c
in the command line when calling shinb
.