summaryrefslogtreecommitdiffstats
path: root/Misc/python-wing4.wpr
diff options
context:
space:
mode:
authorGreg Price <gnprice@gmail.com>2019-09-09 14:16:33 (GMT)
committerT. Wouters <thomas@python.org>2019-09-09 14:16:33 (GMT)
commitfa3a38d81faaf96d17b5a7f0248b9923e3a648cc (patch)
tree74faa96e40adef28fdfefd89a318cf2806807c5f /Misc/python-wing4.wpr
parente3c59a75279b0df4e7553d6f0031e202de434e43 (diff)
downloadcpython-fa3a38d81faaf96d17b5a7f0248b9923e3a648cc.zip
cpython-fa3a38d81faaf96d17b5a7f0248b9923e3a648cc.tar.gz
cpython-fa3a38d81faaf96d17b5a7f0248b9923e3a648cc.tar.bz2
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
Diffstat (limited to 'Misc/python-wing4.wpr')
-rwxr-xr-x[-rw-r--r--]Misc/python-wing4.wpr0
1 files changed, 0 insertions, 0 deletions
diff --git a/Misc/python-wing4.wpr b/Misc/python-wing4.wpr
index 7adfdbd..7adfdbd 100644..100755
--- a/Misc/python-wing4.wpr
+++ b/Misc/python-wing4.wpr