projects
/
hvutilities.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run init command each time compile command is executed
[hvutilities.git]
/
scripts
/
kernel-send-patches.sh
diff --git
a/scripts/kernel-send-patches.sh
b/scripts/kernel-send-patches.sh
index
28af710
..
07c725e
100755
(executable)
--- 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 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
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)"
# Do not edit, auto-generated script
echo
echo "Testing commit: $(git log --oneline | head -n 1)"
+#INIT_CMD
COMPILE_CMD
EOF
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}
sed -i -e "s@COMPILE_CMD@${compile_cmd}@" ${compile_script}
chmod u+x ${compile_script}