From 8a0815ff9d256674dac467e14a3e3a2e152bee13 Mon Sep 17 00:00:00 2001 From: compudj Date: Thu, 14 Sep 2006 01:20:34 +0000 Subject: [PATCH] add core scripts git-svn-id: http://ltt.polymtl.ca/svn@2109 04897980-b3bd-0310-b5e0-8ef037075253 --- scripts/git-diff-core | 3 + scripts/lttng-core-split-script.sh | 136 +++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100755 scripts/git-diff-core create mode 100755 scripts/lttng-core-split-script.sh diff --git a/scripts/git-diff-core b/scripts/git-diff-core new file mode 100755 index 00000000..cc8d85a4 --- /dev/null +++ b/scripts/git-diff-core @@ -0,0 +1,3 @@ +#!/bin/sh + +git-diff-tree -p -r v2.6.17 lttng-$1-core-for-2.6.17 > ../patch-2.6.17-lttng-core-$1-all.diff diff --git a/scripts/lttng-core-split-script.sh b/scripts/lttng-core-split-script.sh new file mode 100755 index 00000000..c1e55a18 --- /dev/null +++ b/scripts/lttng-core-split-script.sh @@ -0,0 +1,136 @@ +#!/bin/sh +# LTTng patch creation +# Creates a -all patch, and split it. +# Mathieu Desnoyers, october 2005 +#$1 is the version + +function wr () { + + cat $1 >> $2 + +} + + +NAME=patch-2.6.17-lttng-core-$1 +ALL_NAME=$NAME-all.diff + +rm -fr tmppatch +mkdir tmppatch +./lttng-core-release-script.sh $ALL_NAME + +cd tmppatch + +cp ../$ALL_NAME . + +splitdiff -a -d $ALL_NAME + +FILE=../$NAME-facilities-headers.diff + +IN="?_include_linux_ltt_ltt-facility-core.h +?_include_linux_ltt_ltt-facility-id-core.h" + +for a in $IN; do wr $a $FILE; done + + +FILE=../$NAME-facilities-loader.diff + +IN="?_ltt_Makefile +?_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 + +IN="?_include_linux_ltt-facilities.h +?_kernel_ltt-facilities.c" + +for a in $IN; do wr $a $FILE; done + +FILE=../$NAME-relayfs.diff + +IN="?_Documentation_ioctl-number.txt +?_include_linux_relay.h +?_fs_relayfs_Makefile +?_fs_relayfs_inode.c +?_fs_relayfs_relay.c +?_fs_relayfs_buffers.c +?_fs_relayfs_buffers.h +?_fs_relayfs_relay.h +?_fs_Makefile +?_block_blktrace.c" + +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.diff + +IN="?_MAINTAINERS +?_include_asm-alpha_ltt.h +?_include_asm-arm26_ltt.h +?_include_asm-arm_ltt.h +?_include_asm-cris_ltt.h +?_include_asm-frv_ltt.h +?_include_asm-generic_ltt.h +?_include_asm-h8300_ltt.h +?_include_asm-i386_ltt.h +?_include_asm-ia64_ltt.h +?_include_asm-m32r_ltt.h +?_include_asm-m68k_ltt.h +?_include_asm-m68knommu_ltt.h +?_include_asm-mips_ltt.h +?_include_asm-mips_mipsregs.h +?_include_asm-mips_timex.h +?_arch_mips_kernel_time.c +?_include_asm-parisc_ltt.h +?_include_asm-powerpc_ltt.h +?_include_asm-ppc_ltt.h +?_include_asm-s390_ltt.h +?_include_asm-sh64_ltt.h +?_include_asm-sh_ltt.h +?_include_asm-sparc64_ltt.h +?_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 +?_ltt_ltt-core.c +?_ltt_ltt-relay.c +?_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" + +for a in $IN; do wr $a $FILE; done + +FILE=../$NAME-modules.diff + +IN="?_ltt_ltt-control.c +?_ltt_ltt-control.h" + +for a in $IN; do wr $a $FILE; done + +cd .. + +rm $ALL_NAME +tar cvfj $NAME.tar.bz2 $NAME-* + -- 2.34.1