File: update-jumbo

package info (click to toggle)
cfengine2 2.1.14-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,688 kB
  • ctags: 12
  • sloc: sh: 290; makefile: 113; perl: 29
file content (71 lines) | stat: -rw-r--r-- 1,609 bytes parent folder | download | duplicates (3)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#! /bin/sh
#
# Update the jumbo patch; output to stdout

comment() {
	sed 's/^/# /'
}

list_patches() {
	for patch in $PATCHES; do
		patch=`basename $patch`
		echo $patch
		docfile="debian/patches.doc/$patch"
		if [ -f "$docfile" ]; then
			printf '\t%s\n\n' "`head -1 $docfile`"
		fi
	done
}

show_patch() {
	base=`basename $1`
	echo '#'
	echo '# **' $base '**'
	docfile="debian/patches.doc/$base"
	if [ -f "$docfile" ]; then
		comment < debian/patches.doc/$base
	fi
	cat $1
}

JUMBO=`mktemp -t jumbo.XXXXXXXXXX` || exit 1

if [ "x$1" != "x-" ]; then
	VER=`awk '/#define PATCHVER/ {print $4}' < debian/patches/990_patchlevel`
	exec > ~/public_html/cfengine-$VER.diff
fi

PATCHES="debian/patches/[0123456789]*"
comment <<eof
This is patch $VER.

If you have problems with this patch that are not present with the
official Cfengine release, please get in touch with me about it.

Conversely, if you find it useful, I'd appreciate being told :)

  -- Andrew Stribblehill <ads@debian.org>

This patch comprises the following smaller patches, derived from the
Debian package; if you just want specific ones, download the latest
Debian source package (for sid) and get them from there.

Alternatively, my working set is available at
http://compsoc.dur.ac.uk/proxy/womble/ads/debian/cfengine2/cfengine2-<version>/

The patches are in debian/patches. The debian/changelog file should give
background details about the problems that each patch solves:

`list_patches`

Files changed in this patch:

eof

for patch in $PATCHES; do
	show_patch $patch >> $JUMBO
done

diffstat -c -w70 -p1 $JUMBO
cat $JUMBO
rm -f $JUMBO