File: proto

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (8 lines) | stat: -rw-r--r-- 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