diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/README.md b/README.md index 4b68c96..f6f03d8 100644 --- a/README.md +++ b/README.md | |||
@@ -2,35 +2,24 @@ | |||
2 | ## include shell files | 2 | ## include shell files |
3 | 3 | ||
4 | built to scratch a personal itch. SHIN is an awk(1) script that plops include | 4 | built to scratch a personal itch. SHIN is an awk(1) script that plops include |
5 | files in to .shin files. here's the usage text: | 5 | files in to .shin files. |
6 | 6 | ||
7 | ``` | 7 | recently rewritten. now use it like this: |
8 | SHIN: include shell files in other shell files | ||
9 | USAGE: shin FILE... | ||
10 | |||
11 | FILEs named FILE.shin will be built to FILE.sh in the same directory. | ||
12 | to include files in shin files, use the following comment syntax: | ||
13 | 8 | ||
14 | #< INCLUDE | 9 | ```sh |
10 | #!/bin/sh | ||
15 | 11 | ||
16 | shin will add INCLUDE below that comment, as well as a comment | 12 | . shin # if shin is in $PATH this should Just Work(TM) |
17 | denoting the end of INCLUDE. | ||
18 | ``` | ||
19 | 13 | ||
20 | it's really that simple. and stupid. | 14 | do_stuff_here |
21 | 15 | ||
22 | ## configuration | 16 | shin included_file |
23 | 17 | ||
24 | SHIN will look for include files in the current directory, unless you set the | 18 | other_stuff |
25 | SHINPATH environment variable. $SHINPATH is a colon-separated list of | 19 | ``` |
26 | directories like $PATH or $MANPATH. | ||
27 | |||
28 | ## extras | ||
29 | 20 | ||
30 | `shin.awk` is the plain awk script. because awk is dumb about handling | 21 | 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). |
31 | arguments, `shin` is a shell script that will do `shin.awk`'s work unless you | ||
32 | pass `shin -h`, in which case it will print a helpful message. | ||
33 | 22 | ||
34 | ## license | 23 | ## build a shell file |
35 | 24 | ||
36 | SHIN is licensed under the FAIR license. see COPYING for details. | 25 | 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`. |