X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=scripts%2Fkernel-send-patches.sh;fp=scripts%2Fkernel-send-patches.sh;h=07c725e4ae2e119bfa8d6fbbf106a2888d26e4ea;hb=93a574b2bc1cc2f252285ac7c569ee27700c4262;hp=28af710353b7f3df5cc42d24e3c763a54c6a68bc;hpb=6851f8a9721524f4fe1ffa70ca994db2b7188b96;p=hvutilities.git diff --git a/scripts/kernel-send-patches.sh b/scripts/kernel-send-patches.sh index 28af710..07c725e 100755 --- a/scripts/kernel-send-patches.sh +++ b/scripts/kernel-send-patches.sh @@ -214,10 +214,6 @@ rm -rf ${srcdir}/*.patch # If the cover letter is not between start and end commits, save a copy: cp ${srcdir}/cover-letter.txt /tmp -if [ x"${init_cmd}" != x"" ]; then - ${init_cmd} -fi - patches_branch="kernel_send_patches" if [ x"${series}" != x"" ]; then @@ -287,9 +283,13 @@ cat > ${compile_script} << "EOF" # Do not edit, auto-generated script echo echo "Testing commit: $(git log --oneline | head -n 1)" +#INIT_CMD COMPILE_CMD EOF +if [ x"${init_cmd}" != x"" ]; then + sed -i -e "s@.*INIT_CMD@${init_cmd}@" ${compile_script} +fi sed -i -e "s@COMPILE_CMD@${compile_cmd}@" ${compile_script} chmod u+x ${compile_script}