File: vm-global.unapply

package info (click to toggle)
kernel-patch-2.2.18-vm-global 1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 36 kB
  • ctags: 2
  • sloc: makefile: 42; sh: 36
file content (20 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e
# $Id: vm-global.unapply,v 1.2 2000/04/12 06:29:32 herbert Exp $

PATCHNAME=vm-global

if ! test -d kernel -a -d Documentation; then
	echo "Not in kernel top level directory. Exiting" >&2
	exit 1
fi

ARCHITECTURE=`dpkg --print-installation-architecture`
if ! test -f APPLIED_$ARCHITECTURE_$PATCHNAME; then
	exit 0
fi
PATCHDIR=/usr/src/kernel-patches/$ARCHITECTURE/@version@

bzcat $PATCHDIR/$PATCHNAME.bz2 | patch -R -s -p1

rm -f APPLIED_$ARCHITECTURE_$PATCHNAME
exit 0