Codebase list libmawk / a8c8f483-bda4-4dcb-b181-d7b9964ade2c/main tools / proto.sh
a8c8f483-bda4-4dcb-b181-d7b9964ade2c/main

Tree @a8c8f483-bda4-4dcb-b181-d7b9964ade2c/main (Download .tar.gz)

proto.sh @a8c8f483-bda4-4dcb-b181-d7b9964ade2c/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