update scripts
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 14 Sep 2006 03:23:20 +0000 (03:23 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 14 Sep 2006 03:23:20 +0000 (03:23 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2110 04897980-b3bd-0310-b5e0-8ef037075253

scripts/lttng-core-split-script.sh
scripts/lttng-split-script.sh

index c1e55a1869fc5adc3fa8fe6a75474b25512c6564..d31d67fca3b5ff99c902dcf0de25d71b8343bf69 100755 (executable)
@@ -16,7 +16,6 @@ ALL_NAME=$NAME-all.diff
 
 rm -fr tmppatch
 mkdir tmppatch
-./lttng-core-release-script.sh $ALL_NAME
 
 cd tmppatch
 
@@ -24,6 +23,14 @@ cp ../$ALL_NAME .
 
 splitdiff -a -d $ALL_NAME
 
+rm $ALL_NAME
+
+for a in *; do
+       cp $a $a.tmp;
+       grep -v -e "^diff --git " -e "^new file mode " -e "^index " $a.tmp > $a
+       rm $a.tmp;
+done
+
 FILE=../$NAME-facilities-headers.diff
 
 IN="?_include_linux_ltt_ltt-facility-core.h
@@ -34,11 +41,9 @@ for a in $IN; do wr $a $FILE; done
 
 FILE=../$NAME-facilities-loader.diff
 
-IN="?_ltt_Makefile
-?_ltt_ltt-facility-loader-core.c
+IN="?_ltt_ltt-facility-loader-core.c
 ?_ltt_ltt-facility-loader-core.h"
 
-
 for a in $IN; do wr $a $FILE; done
 
 FILE=../$NAME-facilities.diff
@@ -48,6 +53,8 @@ IN="?_include_linux_ltt-facilities.h
 
 for a in $IN; do wr $a $FILE; done
 
+
+
 FILE=../$NAME-relayfs.diff
 
 IN="?_Documentation_ioctl-number.txt
@@ -63,16 +70,11 @@ IN="?_Documentation_ioctl-number.txt
 
 for a in $IN; do wr $a $FILE; done
 
-FILE=../$NAME-build.diff
 
-IN="?_Makefile"
 
-for a in $IN; do wr $a $FILE; done
+FILE=../$NAME-core-timestamp.diff
 
-FILE=../$NAME-core.diff
-
-IN="?_MAINTAINERS
-?_include_asm-alpha_ltt.h
+IN="?_include_asm-alpha_ltt.h
 ?_include_asm-arm26_ltt.h
 ?_include_asm-arm_ltt.h
 ?_include_asm-cris_ltt.h
@@ -98,34 +100,75 @@ IN="?_MAINTAINERS
 ?_include_asm-sparc_ltt.h
 ?_include_asm-um_ltt.h
 ?_include_asm-v850_ltt.h
-?_include_asm-x86_64_ltt.h
-?_include_linux_ltt-core.h
-?_include_linux_netlink.h
-?_include_linux_sched.h
-?_ltt_Kconfig
+?_include_asm-x86_64_ltt.h"
+
+for a in $IN; do wr $a $FILE; done
+
+
+FILE=../$NAME-core-header.diff
+
+IN="?_include_linux_ltt-core.h"
+
+for a in $IN; do wr $a $FILE; done
+
+
+FILE=../$NAME-userspace-tracing.diff
+
+IN="?_include_linux_sched.h
+?_kernel_sys_ni.c
+?_kernel_ltt-syscall.c
+?_kernel_exit.c
+?_kernel_fork.c
+?_include_asm-i386_unistd.h
+?_include_asm-powerpc_unistd.h
+?_include_asm-x86_64_ia32_unistd.h
+?_include_asm-x86_64_unistd.h"
+
+for a in $IN; do wr $a $FILE; done
+
+
+FILE=../$NAME-core.diff
+
+IN="?_MAINTAINERS
 ?_ltt_ltt-core.c
-?_ltt_ltt-relay.c
+?_init_main.c
+?_kernel_ltt-base.c
+?_kernel_ltt-heartbeat.c"
+
+for a in $IN; do wr $a $FILE; done
+
+
+
+FILE=../$NAME-transport.diff
+
+IN="?_ltt_ltt-relay.c"
+
+for a in $IN; do wr $a $FILE; done
+
+
+
+FILE=../$NAME-build.diff
+
+IN="?_Makefile
+?_kernel_Makefile
+?_ltt_Kconfig
+?_ltt_Makefile
 ?_arch_i386_Kconfig
 ?_arch_ppc_Kconfig
 ?_arch_powerpc_Kconfig
 ?_arch_arm_Kconfig
 ?_arch_mips_Kconfig
-?_arch_x86_64_Kconfig
-?_init_main.c
-?_kernel_Makefile
-?_kernel_ltt-base.c
-?_kernel_ltt-heartbeat.c
-?_kernel_ltt-syscall.c
-?_kernel_sys_ni.c
-?_kernel_exit.c
-?_kernel_fork.c"
+?_arch_x86_64_Kconfig"
 
 for a in $IN; do wr $a $FILE; done
 
-FILE=../$NAME-modules.diff
+
+
+FILE=../$NAME-netlink-control.diff
 
 IN="?_ltt_ltt-control.c
-?_ltt_ltt-control.h"
+?_ltt_ltt-control.h
+?_include_linux_netlink.h"
 
 for a in $IN; do wr $a $FILE; done
 
index bd9e9c27af51ebe64c22482ee60da705dfa02c94..181f4e04f0829bb2e9be8d7c95c0251a4a58c2cf 100755 (executable)
@@ -16,7 +16,6 @@ ALL_NAME=$NAME-all.diff
 
 rm -fr tmppatch
 mkdir tmppatch
-./lttng-release-script.sh $ALL_NAME
 
 cd tmppatch
 
@@ -25,6 +24,15 @@ cp ../$ALL_NAME .
 splitdiff -a -d $ALL_NAME
 
 
+rm $ALL_NAME
+
+for a in *; do
+       cp $a $a.tmp;
+       grep -v -e "^diff --git " -e "^new file mode " -e "^index " $a.tmp > $a
+       rm $a.tmp;
+done
+
+
 FILE=../$NAME-instrumentation.diff
 
 IN="?_fs_buffer.c
This page took 0.025423 seconds and 4 git commands to generate.