Codebase list libmawk / upstream/1.0.2 tools / proto.sh
upstream/1.0.2

Tree @upstream/1.0.2 (Download .tar.gz)

proto.sh @upstream/1.0.2

b761e9e
 
 
 
 
 
1
2
3
4
5
6
#!/bin/sh
for n in *.h *.c
do
	sed "/PROTO(/ { s/PROTO(//; s/[,][ 	]*[(]/(/; s/);[ 	]*$/;/; }" < $n > $n.tmp
	mv $n.tmp $n
done