update scripts
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 24 Nov 2006 20:04:01 +0000 (20:04 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 24 Nov 2006 20:04:01 +0000 (20:04 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2266 04897980-b3bd-0310-b5e0-8ef037075253

scripts/lttng-core-split-script.sh

index 8e1759a755a066a654148b6e67700df7eb8c287d..a1d0b29e61df18e6c6587e5fb69a7ba399524685 100755 (executable)
@@ -11,8 +11,11 @@ function wr () {
 }
 
 
-NAME=patch-2.6.17-lttng-core-$1
-ALL_NAME=$NAME-all.diff
+PRENAME=patch
+NAME=-2.6.18-lttng-$1
+ALL_NAME=${PRENAME}${NAME}-all.diff
+VALUE=1
+printf -v COUNT "%02d" ${VALUE}
 
 rm -fr tmppatch
 mkdir tmppatch
@@ -31,42 +34,109 @@ for a in *; do
        rm $a.tmp;
 done
 
-
-
-FILE=../$NAME-debugfs.diff
+FILE=../${PRENAME}${COUNT}${NAME}-debugfs.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
 IN="?_fs_debugfs_inode.c"
 
 for a in $IN; do wr $a $FILE; done
 
+#for hotplug
+FILE=../${PRENAME}${COUNT}${NAME}-relay.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
+IN="?_include_linux_relay.h
+?_kernel_relay.c
+?_block_blktrace.c"
 
-FILE=../$NAME-facilities-headers.diff
+for a in $IN; do wr $a $FILE; done
 
-IN="?_include_linux_ltt_ltt-facility-core.h
-?_include_linux_ltt_ltt-facility-id-core.h"
+FILE=../${PRENAME}${COUNT}${NAME}-markers.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
+
+IN="?_include_asm-generic_vmlinux.lds.h
+?_kernel_Kconfig.marker
+?_include_linux_module.h
+?_include_linux_marker.h
+?_include_asm-arm_marker.h
+?_include_asm-cris_marker.h
+?_include_asm-frv_marker.h
+?_include_asm-generic_marker.h
+?_include_asm-h8300_marker.h
+?_include_asm-i386_marker.h
+?_include_asm-ia64_marker.h
+?_include_asm-m32r_marker.h
+?_include_asm-m68k_marker.h
+?_include_asm-m68knommu_marker.h
+?_include_asm-mips_marker.h
+?_include_asm-parisc_marker.h
+?_include_asm-powerpc_marker.h
+?_include_asm-ppc64_marker.h
+?_include_asm-ppc_marker.h
+?_include_asm-s390_marker.h
+?_include_asm-sh64_marker.h
+?_include_asm-sh_marker.h
+?_include_asm-sparc64_marker.h
+?_include_asm-sparc_marker.h
+?_include_asm-um_marker.h
+?_include_asm-v850_marker.h
+?_include_asm-x86_64_marker.h
+?_include_asm-xtensa_marker.h"
 
 for a in $IN; do wr $a $FILE; done
 
+FILE=../${PRENAME}${COUNT}${NAME}-atomic_up.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
-FILE=../$NAME-facilities-loader.diff
+IN="?_include_asm-i386_atomic-up.h
+?_include_asm-i386_system.h
+?_include_asm-x86_64_atomic-up.h
+?_include_asm-x86_64_system.h
+?_include_asm-powerpc_atomic-up.h
+?_include_asm-powerpc_system.h
+?_include_asm-arm_atomic-up.h
+?_include_asm-mips_atomic-up.h
+?_include_asm-generic_atomic-up.h"
 
-IN="?_ltt_ltt-facility-loader-core.c
-?_ltt_ltt-facility-loader-core.h"
+for a in $IN; do wr $a $FILE; done
+
+FILE=../${PRENAME}${COUNT}${NAME}-facility-core-headers.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
+
+IN="?_include_ltt_ltt-facility-core.h
+?_include_ltt_ltt-facility-id-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"
+FILE=../${PRENAME}${COUNT}${NAME}-facility-loader-core.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
+
+IN="?_ltt_facilities_ltt-facility-loader-core.c
+?_ltt_facilities_ltt-facility-loader-core.h
+?_ltt_facilities_Makefile"
 
 for a in $IN; do wr $a $FILE; done
 
+FILE=../${PRENAME}${COUNT}${NAME}-facilities.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
+
+IN="?_include_linux_ltt-facilities.h
+?_ltt_ltt-facilities.c"
 
+for a in $IN; do wr $a $FILE; done
 
 
-FILE=../$NAME-core-timestamp.diff
+FILE=../${PRENAME}${COUNT}${NAME}-timestamp.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
 IN="?_include_asm-alpha_ltt.h
 ?_include_asm-arm26_ltt.h
@@ -94,31 +164,53 @@ IN="?_include_asm-alpha_ltt.h
 ?_include_asm-sparc_ltt.h
 ?_include_asm-um_ltt.h
 ?_include_asm-v850_ltt.h
-?_include_asm-x86_64_ltt.h"
+?_include_asm-x86_64_ltt.h
+?_include_asm-xtensa_ltt.h"
 
 for a in $IN; do wr $a $FILE; done
 
 
-FILE=../$NAME-core-header.diff
+FILE=../${PRENAME}${COUNT}${NAME}-core-header.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
 IN="?_include_linux_ltt-core.h"
 
 for a in $IN; do wr $a $FILE; done
 
 
-FILE=../$NAME-core.diff
+FILE=../${PRENAME}${COUNT}${NAME}-core.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
 IN="?_MAINTAINERS
 ?_ltt_ltt-core.c
-?_init_main.c
-?_kernel_ltt-base.c
-?_kernel_ltt-heartbeat.c"
+?_ltt_ltt-heartbeat.c"
 
 for a in $IN; do wr $a $FILE; done
 
+FILE=../${PRENAME}${COUNT}${NAME}-tracer-header.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
+
+IN="?_include_ltt_ltt-tracer.h"
 
+for a in $IN; do wr $a $FILE; done
 
-FILE=../$NAME-transport.diff
+
+FILE=../${PRENAME}${COUNT}${NAME}-tracer.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
+
+IN="?_ltt_ltt-tracer.c"
+
+for a in $IN; do wr $a $FILE; done
+
+
+
+FILE=../${PRENAME}${COUNT}${NAME}-transport.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
 IN="?_ltt_ltt-relay.c
 ?_Documentation_ioctl-number.txt"
@@ -127,7 +219,9 @@ for a in $IN; do wr $a $FILE; done
 
 
 
-FILE=../$NAME-netlink-control.diff
+FILE=../${PRENAME}${COUNT}${NAME}-netlink-control.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
 IN="?_ltt_ltt-control.c
 ?_ltt_ltt-control.h
@@ -136,44 +230,62 @@ IN="?_ltt_ltt-control.c
 for a in $IN; do wr $a $FILE; done
 
 
-FILE=../$NAME-userspace-tracing.diff
+FILE=../${PRENAME}${COUNT}${NAME}-userspace-tracing.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
 IN="?_include_linux_sched.h
 ?_kernel_sys_ni.c
-?_kernel_ltt-syscall.c
+?_ltt_ltt-syscall.c
 ?_kernel_exit.c
 ?_kernel_fork.c
+?_include_asm-arm_unistd.h
 ?_include_asm-i386_unistd.h
+?_include_asm-mips_unistd.h
 ?_include_asm-powerpc_unistd.h
-?_include_asm-x86_64_ia32_unistd.h
+?_include_asm-powerpc_systbl.h
 ?_include_asm-x86_64_unistd.h"
 
 for a in $IN; do wr $a $FILE; done
 
-
-
-
-FILE=../$NAME-build.diff
+FILE=../${PRENAME}${COUNT}${NAME}-build.diff
+VALUE=$(( ${VALUE} + 1 ))
+printf -v COUNT "%02d" ${VALUE}
 
 IN="?_Makefile
-?_kernel_Makefile
 ?_ltt_Kconfig
 ?_ltt_Makefile
+?_arch_alpha_Kconfig
+?_arch_cris_Kconfig
+?_arch_frv_Kconfig
+?_arch_h8300_Kconfig
 ?_arch_i386_Kconfig
+?_arch_ia64_Kconfig
+?_arch_m32r_Kconfig
+?_arch_m68k_Kconfig
+?_arch_m68knommu_Kconfig
 ?_arch_ppc_Kconfig
 ?_arch_powerpc_Kconfig
+?_arch_parisc_Kconfig
 ?_arch_arm_Kconfig
+?_arch_arm26_Kconfig
 ?_arch_mips_Kconfig
+?_arch_s390_Kconfig
+?_arch_sh64_Kconfig
+?_arch_sh_Kconfig
+?_arch_sparc64_Kconfig
+?_arch_sparc_Kconfig
+?_arch_um_Kconfig
+?_arch_v850_Kconfig
+?_arch_xtensa_Kconfig
 ?_arch_x86_64_Kconfig"
 
 for a in $IN; do wr $a $FILE; done
 
 
 
-
-
 cd ..
 
 rm $ALL_NAME
-tar cvfj $NAME.tar.bz2 $NAME-*
+tar cvfj ${PRENAME}${NAME}.tar.bz2 ${PRENAME}*${NAME}-*
 
This page took 0.027228 seconds and 4 git commands to generate.