This handles:
- .py library files (not scripts) with a #/usr/bin/env or /usr/bin/python shebang by removing the shebang. A shebang on a library
file makes no sense.
- All sorts of files with -x permission which shouldn't have that (.svg, .po, .js, .csv etc.)
This is still a mess. I understand this is a low priority bug, but would nevertheless appreciate if it was fixed. The lines above is the closest to a patch I can come, though.
The situation is is just slightly improved in 7.0 (the inconsistent line encodings are gone). Current code to rectify situation:
# https:/ /bugs.launchpad .net/bugs/ 993414 bin/python; d' addons/ l10n_fr_ hr_payroll/ report/ fiche_paye. py asset_change_ duration. py \ interrogation. py \ addons/ account_ asset -type f -name \*.py ) addons/ l10n_fr_ hr_payroll -type f -name \*.py ) addons/ /l10n_ro -type f -name \*.py )
find . -name \*.py -a -perm 644 -a -type f | \
xargs sed -i -e '\;/usr/bin/env;d' -e '\;/usr/
sed -i -e '\;/usr/bin/env;d' \
openerp/
find . \( -name \*.html -o -name \*yml -o -name \*.js -o -name \*.po \
-o -name \*.css -o -iname readme* -o -name \*.csv \
-o -name \*.xml -o -name \*.svg \
-o -name account_
-o -name input_complete \
-o -name base_quality_
\) -a -type f |
xargs chmod 644
chmod 644 $( find openerp/
chmod 644 $( find openerp/
chmod 644 $( find openerp/
This handles:
- .py library files (not scripts) with a #/usr/bin/env or /usr/bin/python shebang by removing the shebang. A shebang on a library
file makes no sense.
- All sorts of files with -x permission which shouldn't have that (.svg, .po, .js, .csv etc.)
This is still a mess. I understand this is a low priority bug, but would nevertheless appreciate if it was fixed. The lines above is the closest to a patch I can come, though.