diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-12-14 23:10:04 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-12-14 23:10:04 +0000 |
commit | e041ad6668b26be0212407588fa285fc639a6453 (patch) | |
tree | c0f7c553b3c1c1685da2daa596e97484fc0c9044 /gen-scheme-words | |
parent | 98bfaa305cc0b081f3fc38232264c6002fd778ec (diff) | |
download | dotnvim-e041ad6668b26be0212407588fa285fc639a6453.tar.gz dotnvim-e041ad6668b26be0212407588fa285fc639a6453.zip |
Trying scheme
Diffstat (limited to 'gen-scheme-words')
-rwxr-xr-x | gen-scheme-words | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gen-scheme-words b/gen-scheme-words new file mode 100755 index 0000000..5f2185e --- /dev/null +++ b/gen-scheme-words @@ -0,0 +1,18 @@ +#!/bin/sh -e + +dir="$HOME/.local/share/scheme/words" + +first() { cut -d' ' -f1; } + +mkdir -p "$dir" + +for n in $(chicken-doc -c chicken | first) +do + chicken-doc -c chicken "$n" | first | tee "$dir/chicken-$n" +done + +for n in $(chicken-doc -c | first) +do + [ "$n" = "chicken" ] || chicken-doc -c "$n" | first | tee "$dir/$n" +done + |