summaryrefslogtreecommitdiff
path: root/Makeperms.rc
blob: d328469912f21df74a68f0b2fa301d4becb1a442 (plain)
1
2
3
4
5
6
7
8
#!/bin/rc

for (f in `$nl{find . -type f ! -name 'Make*' | grep -v '/\.' | sed 's/^\.\///'}) {
	if (!test -x $f && head -n1 < $f | grep '^#!' >/dev/null) {
		echo CHMOD +X $f
		chmod +x $f
	}
}