File: treetopy.sh

package info (click to toggle)
python-coverage 6.5.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,580 kB
  • sloc: python: 25,471; ansic: 1,152; javascript: 1,104; makefile: 253; sh: 107; xml: 48
file content (6 lines) | stat: -rw-r--r-- 174 bytes parent folder | download | duplicates (3)
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