Mercurial > hg > toybox
comparison scripts/make.sh @ 1037:af1780148f7c draft
Implement ls --color=auto, suggested by Rich Felker.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 01 Sep 2013 08:00:41 -0500 |
parents | 40d0c96a8e89 |
children | 223df8e9c694 |
comparison
equal
deleted
inserted
replaced
1036:a25239480e7a | 1037:af1780148f7c |
---|---|
66 FLX="$1" | 66 FLX="$1" |
67 shift | 67 shift |
68 sed -n -e "s/.*TOY($FLX"',[ \t]*"\([^"]*\)"[ \t]*,.*)/\1/' \ | 68 sed -n -e "s/.*TOY($FLX"',[ \t]*"\([^"]*\)"[ \t]*,.*)/\1/' \ |
69 -e 't keep;d;:keep' -e 's/^[<>=][0-9]//' -e 's/[?&^]//' \ | 69 -e 't keep;d;:keep' -e 's/^[<>=][0-9]//' -e 's/[?&^]//' \ |
70 -e 't keep' -e 's/[><=][0-9][0-9]*//g' -e 's/+.//g' \ | 70 -e 't keep' -e 's/[><=][0-9][0-9]*//g' -e 's/+.//g' \ |
71 -e 's/\[[^]]*\]//g' -e 's/[-?^:&#|@* ]//g' "$@" -e 'p' | 71 -e 's/\[[^]]*\]//g' -e 's/[-?^:&#|@* ;]//g' "$@" -e 'p' |
72 } | 72 } |
73 | 73 |
74 # Extract global structure definitions and flag definitions from toys/*/*.c | 74 # Extract global structure definitions and flag definitions from toys/*/*.c |
75 | 75 |
76 function getglobals() | 76 function getglobals() |