File: dpatch-list-patch

package info (click to toggle)
dpatch 2.0.38%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 676 kB
  • sloc: sh: 1,013; makefile: 225; awk: 57; perl: 17
file content (46 lines) | stat: -rwxr-xr-x 795 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /bin/sh
## dpatch-list-patch -- List available patches
## (C) 2003 Junichi Uekawa <dancer@debian.org>
##
## Released under the terms of the GNU GPLv2.

## Move to likely debian dir
while ! test -d ./debian -o "$(pwd)" = "/" ; do
	cd ..;
done

## Setup defaults
DPLP_SRCDIR=$(pwd)

## Parse commandline
dplp_usage ()
{
	echo "dpatch-list-patch, list available patches"
	echo "   usage: dpatch-list-patch [-s|--sourcedir s]"
}

TEMP=$(getopt -n dpatch-list-patch -l help,sourcedir: -- +hs: "$@")

eval set -- ${TEMP}

while test "$1" != "--"; do
	case $1 in
		-s|--sourcedir)
			shift
			DPLP_SRCDIR=$1
			;;
		-h|--help)
			dplp_usage
			exit 0
			;;
	esac
	shift
done

echo "Patches that would be applied:"

cd ${DPLP_SRCDIR}

dpatch cat-all

# arch-tag: fbd2892f-32fc-4a37-9a4d-8a0772ace95c