| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | dir=`dirnamescip-shell system . . dirname. "$0"` |
| 6 | |
| 7 | for f in `findscip-shell system . . find. "$dir" -type f | grepscip-shell system . . grep. -v '\.svn' | grepscip-shell system . . grep. -v '~'`; do |
| 8 | if headscip-shell system . . head. -n 1 "$f" | grepscip-shell system . . grep. -q '#!/usr/bin/env bash'; then |
| 9 | echoscip-shell system . . echo. "Processing $f" |
| 10 | sedscip-shell system . . sed. 's;#!/usr/bin/env bash;#!/usr/bin/env sh;' <"$f" >.tmp; |
| 11 | mvscip-shell system . . mv. .tmp "$f"; |
| 12 | fi |
| 13 | done |