File: %40ll

package info (click to toggle)
auto-07p 0.9.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,200 kB
  • sloc: fortran: 22,644; f90: 19,340; python: 19,045; ansic: 11,116; sh: 1,079; makefile: 618; perl: 339
file content (26 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
if ( test $# -eq 1 ) then
	file=s.$1
else
	file=fort.8
fi
if python - 2> /dev/null <<EOF
import sys
import os
sys.path.append(os.path.join(os.environ["AUTO_DIR"],"python"))
import parseS

solutions=parseS.parseS("$file")
print("\n  BR    PT  TY  LAB")
for sol in solutions:
    typename = sol["Type name"]
    if typename == 'RG':
        typename = ''
    print("%4s%6s%4s%5s"%(sol["Branch number"], sol["Point number"],
        typename,sol["Label"]))
EOF
then
    :
else
    $AUTO_DIR/bin/listlabels < $file
fi