File: patch-mkseries

package info (click to toggle)
ghostscript 10.0.0~dfsg-11%2Bdeb12u7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 98,252 kB
  • sloc: ansic: 891,828; python: 7,649; cpp: 6,493; cs: 6,209; sh: 6,043; java: 4,028; perl: 2,372; tcl: 1,639; makefile: 521; awk: 66; javascript: 43; yacc: 18
file content (20 lines) | stat: -rwxr-xr-x 728 bytes parent folder | download | duplicates (8)
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