cpython/Lib/turtledemo
Greg Price fa3a38d81f Mark files as executable that are meant as scripts. (GH-15354)
This is the converse of GH-15353 -- in addition to plenty of
scripts in the tree that are marked with the executable bit
(and so can be directly executed), there are a few that have
a leading `#!` which could let them be executed, but it doesn't
do anything because they don't have the executable bit set.

Here's a command which finds such files and marks them.  The
first line finds files in the tree with a `#!` line *anywhere*;
the next-to-last step checks that the *first* line is actually of
that form.  In between we filter out files that already have the
bit set, and some files that are meant as fragments to be
consumed by one or another kind of preprocessor.

    $ git grep -l '^#!' \
      | grep -vxFf <( \
          git ls-files --stage \
          | perl -lane 'print $F[3] if (!/^100644/)' \
        ) \
      | grep -ve '\.in$' -e '^Doc/includes/' \
      | while read f; do
          head -c2 "$f" | grep -qxF '#!' \
          && chmod a+x "$f"; \
        done
2019-09-09 07:16:33 -07:00
..
__init__.py
__main__.py Mark files as executable that are meant as scripts. (GH-15354) 2019-09-09 07:16:33 -07:00
bytedesign.py time.clock() now emits a DeprecationWarning (GH-4020) 2017-10-17 14:46:45 -07:00
chaos.py
clock.py
colormixer.py
forest.py time.clock() now emits a DeprecationWarning (GH-4020) 2017-10-17 14:46:45 -07:00
fractalcurves.py time.clock() now emits a DeprecationWarning (GH-4020) 2017-10-17 14:46:45 -07:00
lindenmayer.py
minimal_hanoi.py
nim.py
paint.py Fix typos in docs and docstrings (GH-13745) 2019-06-03 01:12:33 +02:00
peace.py
penrose.py turtledemo/penrose.py: remove unused clock() calls (GH-10033) 2018-10-25 00:43:39 +02:00
planet_and_moon.py
rosette.py bpo-14117: Make minor tweaks to turtledemo (GH-8002) 2018-06-29 01:10:05 -04:00
round_dance.py
sorting_animate.py Mark files as executable that are meant as scripts. (GH-15354) 2019-09-09 07:16:33 -07:00
tree.py bpo-14117: Make minor tweaks to turtledemo (GH-8002) 2018-06-29 01:10:05 -04:00
turtle.cfg
two_canvases.py Unmark files as executable that can't actually be executed. (GH-15353) 2019-08-20 21:53:59 -07:00
yinyang.py