File: proto

package info (click to toggle)
zsh 3.1.2-8
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 3,628 kB
  • ctags: 3,582
  • sloc: ansic: 39,480; sh: 2,393; makefile: 1,189; perl: 329; awk: 257; sed: 25
file content (8 lines) | stat: -rwxr-xr-x 194 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
#! /bin/sh
# generate prototypes, if your style is the same as mine
for i
do
	rm $i:r.pro 2>/dev/null
	grep -v '[{};:#]' $i | grep '^[A-Za-z]' |
		grep -v static | sed 's/$/;/' >! $i:r.pro
done