debian/deb2xenial
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | # Patch a debian package -> xenial |
| 4 | |
| 5 | rev=${1:-1} |
| 6 | here=$(dirname $(readlink -fn $0)) |
| 7 | |
| 8 | sed -i '1,3s/[^ ]*;/xenial;/' debian/changelog |
| 9 | sed -i '1,3s/)/~xenial'$rev')/' debian/changelog |
| 10 | sed -i '/Standards-Version:/s/:.*/: 3.9.7/' debian/control |
| 11 | sed -i 's/11/9/' debian/compat |
| 12 | sed -i '/debhelper/s/11/9/' debian/control |
| 13 | sed -i '/python3-setuptools/s/$/, dh-systemd/' debian/control |
| 14 | sed -i '/--with python3/s/$/,systemd/' debian/rules |
| 15 |