| | 17 | To see all the options: {{{pygmentize -L}}} |
| | 18 | |
| | 19 | For a full tree of the Chimera libs, try: |
| | 20 | {{{ |
| | 21 | #!sh |
| | 22 | #!/bin/bash |
| | 23 | |
| | 24 | export CHIMERAPYGMENTS=/data/src/chimera-pygments |
| | 25 | |
| | 26 | export CHIMERASRC=/data/src/chimera-svn |
| | 27 | export CHIMERALIB=$CHIMERASRC/libs |
| | 28 | |
| | 29 | pyfiles=$(find $CHIMERALIB -name "*.py") |
| | 30 | |
| | 31 | for py in $pyfiles; do |
| | 32 | html=$(echo $py | sed -e "s/.py$/.html/" -e "s#${CHIMERALIB}#${CHIMERAPYGMENTS}#g") |
| | 33 | echo $html |
| | 34 | mkdir -p $(dirname $html) |
| | 35 | pygmentize -f html -O full,style=trac,linenos=1 -o $html $py |
| | 36 | done |
| | 37 | }}} |