Debian Codegraph @

crudini-help

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # crudini --help generator for help2man and README.md
4
5 if [scip-shell system . . `[`. "$1" = '--help' ]; then
6 {
7 printfscip-shell system . . printf. '%s' 'crudini - '
•8 python3scip-shell system . . python3. crudini.py --help | sedscip-shell system . . sed. 's/crudini\.py/crudini/g;'
9 echoscip-shell system . . echo.
10 catscip-shell system . . cat. EXAMPLES
11 }
12 elif [scip-shell system . . `[`. "$1" = '--markdown' ]; then
13 {
14 printfscip-shell system . . printf. '%s' '# crudini - '
•15 python3scip-shell system . . python3. crudini.py --help | sedscip-shell system . . sed. 's/crudini\.py/crudini/g;'
16 echoscip-shell system . . echo.
17 catscip-shell system . . cat. EXAMPLES
18 } |
19 sedscip-shell system . . sed. 's/^\([^ ]\+:\)\( \+\)/\1\n/' | # Sections on own line
20 sedscip-shell system . . sed. 's/^[^ ]\+:/```\n## &\n```/' | # Markup sections
21 sedscip-shell system . . sed. 's/^ *or: *//' | # Delete help2man synopsis formatting
22 sedscip-shell system . . sed. '0,/```/{/```/d;}' # Delete first ```
23 echoscip-shell system . . echo. '```' # Add terminating ```
24 elif [scip-shell system . . `[`. "$1" = '--version' ]; then
•25 python3scip-shell system . . python3. crudini.py --version
26 fi
27