File: patch-mkseries

package info (click to toggle)
radicale 3.5.10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,004 kB
  • sloc: python: 13,017; javascript: 1,144; sh: 269; xml: 93; makefile: 38; perl: 20
file content (20 lines) | stat: -rwxr-xr-x 728 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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

(cd debian/patches && find * -maxdepth 0 -type f -name '0*.patch') \
	| sort > debian/patches/series
(cd debian/patches && find * -mindepth 1 -type f -name '*.patch') \
	| sort >> debian/patches/series
(cd debian/patches && find * -maxdepth 0 -type f -name '*.patch' -not -name '0*') \
	| sort >> debian/patches/series