Permalink
Please sign in to comment.
Browse files
Miscellaneous tweaks to make the wild.sh report look and work better.
- Add a top-level subtree summary to each WILD directory entry. This
required attaching subtree stats to each DirNode.
- Calculate and show the maximum parse time.
- Currently 18 seconds for the 9,000 line ltmain.sh. But this should
be multiplied by 10 because I have a really fast computer! 180
seconds needs to be less than 180 ms. Three orders of magnitude.
- Calculate and show the maximum number of lines.
- script script selection tweaks
- Add Kythe
- Exclude non-shell scripts from pixelb and git (nice use of find
-exec test/shebang.sh is-shell {} ';')
- Unify CSS: Use table-sort.css in the generated listing.html files.
- Functions to look for unicode chars- Loading branch information...
Showing
with
182 additions
and 72 deletions.
- +26 −0 test/shebang.sh
- +8 −7 test/wild-runner.sh
- +33 −5 test/wild.sh
- +95 −29 test/wild_report.py
- +0 −7 web/table/table-sort.css
- +20 −24 web/wild.css
| @@ -0,0 +1,26 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Usage: | ||
| # ./shebang-is-shell.sh PATH | ||
| # Test if the first line ends with 'sh'. | ||
| is-shell() { | ||
| local path=$1 | ||
| local shebang | ||
| read shebang < $path # read a line from the file | ||
| shebang=${shebang// /} # strip all whitespace on the line | ||
| [[ $shebang == *sh ]] | ||
| } | ||
| unittest() { | ||
| for file in bin/oil.py configure install; do | ||
| if is-shell $file; then | ||
| echo YES $file | ||
| else | ||
| echo NO $file | ||
| fi | ||
| done | ||
| } | ||
| "$@" | ||
Oops, something went wrong.
0 comments on commit
09ee4a6