#!/bin/sh
# Copyright 2018  Jonas Smedegaard <dr@jones.dk>
# Description: helper script to (re)create debian/patches/series
#
# This program is free software;
# you can redistribute it and/or modify it
# under the terms of the GNU General Public License
# as published by the Free Software Foundation;
# either version 3, or (at your option) any later version.

# FIXME: handle commented out patches

set -e

ls -1 debian/patches/*.patch debian/patches/*/*.patch \
	| grep -Po 'debian/patches/\K.*' > debian/patches/series
