dot rc

Sign in or create your account | Project List | Help

dot rc Git Source Tree

Root/Makefile

1
2rc/bash_desc: $(subst bash_desc,,$(wildcard rc/*))
3    @grep -A1 'doc:' -h -s $^ | ( \
4        doc=;\
5        echo echo "\"run flist for a list of available functions\"";\
6        echo "flist() {";\
7        echo \ \ echo "\"Available functions:\"";\
8        while read cmt dc desc; do\
9            [ -z "$$cmt" ] || [ "$$cmt" = "--" ] && continue;\
10            if [ -z "$$dc" ]; then\
11                echo \ \ echo "\" $${cmt%%(*}: $$doc\"";\
12            elif [ "$$dc" = "doc:" ]; then\
13                doc="$$desc";\
14            fi;\
15        done | LC_ALL=C sort;\
16        echo "}";\
17    ) > $@
18
19

Archive Download this file

Branches:
master