summaryrefslogtreecommitdiff
path: root/lab/treetopy.sh
blob: 2dcf1cac3f59282c6ced285dfa334ac45bd358c3 (plain)
1
2
3
4
5
6
# Turn a tree of Python files into a series of make_file calls.
for f in **/*.py; do
    echo 'make_file("'$1$f'", """\\'
    sed -e 's/^/    /' <$f
    echo '    """)'
done