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