File: CreatePresetTbl.sh

package info (click to toggle)
papi 5.7.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,856 kB
  • sloc: ansic: 93,265; fortran: 3,338; xml: 2,460; makefile: 815; sh: 290
file content (13 lines) | stat: -rwxr-xr-x 297 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# This is a shell script to help create the man page for PAPI_presets

cat << EOF
.TS
box, tab(&);
lt | lw(50).
=
EOF
./tests/avail | grep 'PAPI_' | sed 's/(.*)//g' | sort | \
   awk '{ printf("%s&T{\n", $1); for(i=5;i<=NF;i++) { printf("%s ",$i) } ; printf("\nT}\n_\n") }' 
echo ".TE"