```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
20 lines
710 B
Diff
20 lines
710 B
Diff
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -1,16 +1,9 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/env python3
|
|
|
|
from distutils.core import setup
|
|
from distutils.command import install as distutils_install
|
|
from iotop.version import VERSION
|
|
|
|
-# Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
|
|
-# while still honoring the choice of installing into local/ or not.
|
|
-if hasattr(distutils_install, 'INSTALL_SCHEMES'):
|
|
- for d in distutils_install.INSTALL_SCHEMES.itervalues():
|
|
- if d.get('scripts', '').endswith('/bin'):
|
|
- d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
|
|
-
|
|
setup(name='iotop',
|
|
version=VERSION,
|
|
description='Per process I/O bandwidth monitor',
|