From: compudj Date: Thu, 14 Sep 2006 03:23:20 +0000 (+0000) Subject: update scripts X-Git-Tag: v0.12.20~1379 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1a6c4b55c657b112f8bb032918ced26ca0952916;p=lttv.git update scripts git-svn-id: http://ltt.polymtl.ca/svn@2110 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/scripts/lttng-core-split-script.sh b/scripts/lttng-core-split-script.sh index c1e55a18..d31d67fc 100755 --- a/scripts/lttng-core-split-script.sh +++ b/scripts/lttng-core-split-script.sh @@ -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 diff --git a/scripts/lttng-split-script.sh b/scripts/lttng-split-script.sh index bd9e9c27..181f4e04 100755 --- a/scripts/lttng-split-script.sh +++ b/scripts/lttng-split-script.sh @@ -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