| 1 | #!/bin/sh |
| 2 | # Copyright 2018 Jonas Smedegaard <[email protected]> |
| 3 | # Description: helper script to (re)create debian/patches/series |
| 4 | # |
| 5 | # This program is free software; |
| 6 | # you can redistribute it and/or modify it |
| 7 | # under the terms of the GNU General Public License |
| 8 | # as published by the Free Software Foundation; |
| 9 | # either version 3, or (at your option) any later version. |
| 10 | |
| 11 | # FIXME: handle commented out patches |
| 12 | |
| 13 | set -e |
| 14 | |
| 15 | (cd debian/patches && find * -maxdepth 0 -type f -name '0*.patch') \ |
| 16 | | sort > debian/patches/series |
| 17 | (cd debian/patches && find * -mindepth 1 -type f -name '*.patch') \ |
| 18 | | sort >> debian/patches/series |
| 19 | (cd debian/patches && find * -maxdepth 0 -type f -name '*.patch' -not -name '0*') \ |
| 20 | | sort >> debian/patches/series |