8a0815ff |
1 | #!/bin/sh |
2 | # LTTng patch creation |
3 | # Creates a -all patch, and split it. |
4 | # Mathieu Desnoyers, october 2005 |
5 | #$1 is the version |
6 | |
7 | function wr () { |
8 | |
9 | cat $1 >> $2 |
10 | |
11 | } |
12 | |
13 | |
14 | NAME=patch-2.6.17-lttng-core-$1 |
15 | ALL_NAME=$NAME-all.diff |
16 | |
17 | rm -fr tmppatch |
18 | mkdir tmppatch |
19 | ./lttng-core-release-script.sh $ALL_NAME |
20 | |
21 | cd tmppatch |
22 | |
23 | cp ../$ALL_NAME . |
24 | |
25 | splitdiff -a -d $ALL_NAME |
26 | |
27 | FILE=../$NAME-facilities-headers.diff |
28 | |
29 | IN="?_include_linux_ltt_ltt-facility-core.h |
30 | ?_include_linux_ltt_ltt-facility-id-core.h" |
31 | |
32 | for a in $IN; do wr $a $FILE; done |
33 | |
34 | |
35 | FILE=../$NAME-facilities-loader.diff |
36 | |
37 | IN="?_ltt_Makefile |
38 | ?_ltt_ltt-facility-loader-core.c |
39 | ?_ltt_ltt-facility-loader-core.h" |
40 | |
41 | |
42 | for a in $IN; do wr $a $FILE; done |
43 | |
44 | FILE=../$NAME-facilities.diff |
45 | |
46 | IN="?_include_linux_ltt-facilities.h |
47 | ?_kernel_ltt-facilities.c" |
48 | |
49 | for a in $IN; do wr $a $FILE; done |
50 | |
51 | FILE=../$NAME-relayfs.diff |
52 | |
53 | IN="?_Documentation_ioctl-number.txt |
54 | ?_include_linux_relay.h |
55 | ?_fs_relayfs_Makefile |
56 | ?_fs_relayfs_inode.c |
57 | ?_fs_relayfs_relay.c |
58 | ?_fs_relayfs_buffers.c |
59 | ?_fs_relayfs_buffers.h |
60 | ?_fs_relayfs_relay.h |
61 | ?_fs_Makefile |
62 | ?_block_blktrace.c" |
63 | |
64 | for a in $IN; do wr $a $FILE; done |
65 | |
66 | FILE=../$NAME-build.diff |
67 | |
68 | IN="?_Makefile" |
69 | |
70 | for a in $IN; do wr $a $FILE; done |
71 | |
72 | FILE=../$NAME-core.diff |
73 | |
74 | IN="?_MAINTAINERS |
75 | ?_include_asm-alpha_ltt.h |
76 | ?_include_asm-arm26_ltt.h |
77 | ?_include_asm-arm_ltt.h |
78 | ?_include_asm-cris_ltt.h |
79 | ?_include_asm-frv_ltt.h |
80 | ?_include_asm-generic_ltt.h |
81 | ?_include_asm-h8300_ltt.h |
82 | ?_include_asm-i386_ltt.h |
83 | ?_include_asm-ia64_ltt.h |
84 | ?_include_asm-m32r_ltt.h |
85 | ?_include_asm-m68k_ltt.h |
86 | ?_include_asm-m68knommu_ltt.h |
87 | ?_include_asm-mips_ltt.h |
88 | ?_include_asm-mips_mipsregs.h |
89 | ?_include_asm-mips_timex.h |
90 | ?_arch_mips_kernel_time.c |
91 | ?_include_asm-parisc_ltt.h |
92 | ?_include_asm-powerpc_ltt.h |
93 | ?_include_asm-ppc_ltt.h |
94 | ?_include_asm-s390_ltt.h |
95 | ?_include_asm-sh64_ltt.h |
96 | ?_include_asm-sh_ltt.h |
97 | ?_include_asm-sparc64_ltt.h |
98 | ?_include_asm-sparc_ltt.h |
99 | ?_include_asm-um_ltt.h |
100 | ?_include_asm-v850_ltt.h |
101 | ?_include_asm-x86_64_ltt.h |
102 | ?_include_linux_ltt-core.h |
103 | ?_include_linux_netlink.h |
104 | ?_include_linux_sched.h |
105 | ?_ltt_Kconfig |
106 | ?_ltt_ltt-core.c |
107 | ?_ltt_ltt-relay.c |
108 | ?_arch_i386_Kconfig |
109 | ?_arch_ppc_Kconfig |
110 | ?_arch_powerpc_Kconfig |
111 | ?_arch_arm_Kconfig |
112 | ?_arch_mips_Kconfig |
113 | ?_arch_x86_64_Kconfig |
114 | ?_init_main.c |
115 | ?_kernel_Makefile |
116 | ?_kernel_ltt-base.c |
117 | ?_kernel_ltt-heartbeat.c |
118 | ?_kernel_ltt-syscall.c |
119 | ?_kernel_sys_ni.c |
120 | ?_kernel_exit.c |
121 | ?_kernel_fork.c" |
122 | |
123 | for a in $IN; do wr $a $FILE; done |
124 | |
125 | FILE=../$NAME-modules.diff |
126 | |
127 | IN="?_ltt_ltt-control.c |
128 | ?_ltt_ltt-control.h" |
129 | |
130 | for a in $IN; do wr $a $FILE; done |
131 | |
132 | cd .. |
133 | |
134 | rm $ALL_NAME |
135 | tar cvfj $NAME.tar.bz2 $NAME-* |
136 | |