Codebase list libmawk / f694964d-46cb-42e8-af1b-824470af934a/main tools / proto.sh
f694964d-46cb-42e8-af1b-824470af934a/main

Tree @f694964d-46cb-42e8-af1b-824470af934a/main (Download .tar.gz)

proto.sh @f694964d-46cb-42e8-af1b-824470af934a/mainraw · history · blame

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