A statistical analyzer for corpora of shell scripts
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
corpus-assignment
share
src
test-expansion
.gitignore
.travis.install.sh
.travis.script.sh
.travis.yml
COPYING
Makefile
README.org
run-test

README.org

shstats – A statistical analyzer for corpora of shell scripts

Installing

Shstats depends on Morbig which has no stable release yet. In order to be able to build Shstats, you need to use the ralf/exports branch of Morbig.

After that, all the dependencies of Shstats should be included in that of Morbig. A simple make should work.

Example

On a corpus of debian packages:

find corpus -iregex '.*/\(pre\|post\)\(inst\|rm\)' \
    | bin/shstats --specifications share/specifications --report-path report

should do the trick. You can then open report/index.org in any editor (although Emacs is recommended as it has a nice support for Org files).