File: mkrtlpatch

package info (click to toggle)
rtlinux 3.1pre3-3
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 4,896 kB
  • ctags: 4,228
  • sloc: ansic: 26,204; sh: 2,069; makefile: 1,414; perl: 855; tcl: 489; asm: 380; cpp: 42
file content (20 lines) | stat: -rw-r--r-- 809 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/bash

TAG=`bk changes | fgrep TAG | fgrep v2. | head -n 1 | awk '{print $2}'`

echo Generating patches against tag $TAG

bk rset -h -r${TAG},+ | egrep ^arch/i386 | bk gnupatch -h > i386.patch
bk rset -h -r${TAG},+ | egrep ^include/asm-i386 | bk gnupatch -h >> i386.patch

bk rset -h -r${TAG},+ | egrep ^arch/ppc | bk gnupatch -h > ppc.patch
bk rset -h -r${TAG},+ | egrep ^include/asm-ppc | bk gnupatch -h >> ppc.patch

bk rset -h -r${TAG},+ | egrep ^arch/alpha | bk gnupatch -h > alpha.patch
bk rset -h -r${TAG},+ | egrep ^include/asm-alpha | bk gnupatch -h >> alpha.patch

bk rset -h -r${TAG},+ | egrep ^arch/mips | bk gnupatch -h > mips.patch
bk rset -h -r${TAG},+ | egrep ^include/asm-mips | bk gnupatch -h >> mips.patch

bk rset -h -r${TAG},+ | egrep -v ^BitKeeper | bk gnupatch -h > kernel.patch