Changeset - 8d663d23ab85
[Not reviewed]
default
0 2 0
Mads Kiilerich - 6 years ago 2020-03-12 23:21:01
mads@kiilerich.com
scripts: make output from run-all-cleanup easier to parse

Make it clear that it didn't end prematurely due to some invisible problem.
2 files changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
scripts/run-all-cleanup
Show inline comments
 
#!/bin/sh
 

	
 
# Convenience script for running various idempotent source code cleanup scripts
 

	
 
set -e
 
set -x
 

	
 
scripts/docs-headings.py
 
scripts/generate-ini.py
 
scripts/whitespacecleanup.sh
 

	
 
hg loc 'set:!binary()&grep("^#!.*python")' '*.py' | xargs scripts/pyflakes
 
echo "no blocking problems found by $0"
scripts/whitespacecleanup.sh
Show inline comments
 
@@ -11,13 +11,14 @@ sed -i -e 's,\([^ ]\)\\$,\1 \\,g' -e 's,
 
# ensure one trailing newline - remove empty last line and make last line include trailing newline:
 
sed -i -e '$,${/^$/d}' -e '$a\' $files
 

	
 
sed -i -e 's,\([^ /]\){,\1 {,g' `hg loc '*.css'`
 
sed -i -e 's|^\([^ /].*,\)\([^ ]\)|\1 \2|g' `hg loc '*.css'`
 

	
 
hg mani | xargs chmod -x
 
hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x
 

	
 
# isort is installed from dev_requirements.txt
 
hg loc 'set:!binary()&grep("^#!.*python")' '*.py' | xargs isort --line-width 160 --lines-after-imports 2
 

	
 
echo "diff after $0:"
 
hg diff
0 comments (0 inline, 0 general)