scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

mkproto (175B)


      1 #!/bin/sh
      2 
      3 for dir
      4 do
      5 	find $dir |
      6 	while read i
      7 	do
      8 		if test -d $i
      9 		then
     10 			echo d 755 $i
     11 		elif test -x $i
     12 		then
     13 			echo f 755 $i
     14 		else
     15 			echo f 644 $i
     16 		fi
     17 	done
     18 done