File: mkspec

package info (click to toggle)
saclib 2.2.8-6.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,872 kB
  • sloc: ansic: 40,932; csh: 1,190; asm: 541; awk: 320; sh: 246; perl: 116; makefile: 98; sed: 48
file content (12 lines) | stat: -rwxr-xr-x 262 bytes parent folder | download | duplicates (32)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/csh

# USAGE
#   mkspec <SAC source file names>
#
# FUNCTION
#   Extracts the function specifications from the headers of SAC source files
#   and writes them to STDOUT.

foreach fname ($argv)
  awk '/^\/\*====*===$/,/^====*===\*\/$/ {print}' $fname
end