Skip to contentSkip to conversation

fix scripts/update-linux-headers.sh here document

PATCH Applied Gerd Hoffmann 5 participants 5 messages Nov 10, 2017 – Nov 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix scripts/update-linux-headers.sh here document

---
 scripts/update-linux-headers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/update-linux-headers.sh +1 -1
index 8b847e279b..e2b159aa3d 100755
@@ -108,7 +108,7 @@ for arch in $ARCHLIST; do
     if [ $arch = x86 ]; then
         cat <<-EOF >"$output/include/standard-headers/asm-x86/hyperv.h"
         /* this is a temporary placeholder until kvm_para.h stops including it */
-        EOF
+EOF
         cp "$tmpdir/include/asm/unistd_32.h" "$output/linux-headers/asm-x86/"
         cp "$tmpdir/include/asm/unistd_x32.h" "$output/linux-headers/asm-x86/"
         cp "$tmpdir/include/asm/unistd_64.h" "$output/linux-headers/asm-x86/"
Signature · 1 line
2.9.3
Reviewed-by on v1 1/1
#2 lore raw
In reply to Gerd Hoffmann
Quoted 10 lines · Gerd Hoffmann
---
 scripts/update-linux-headers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/update-linux-headers.sh +0 -0
index 8b847e279b..e2b159aa3d 100755

scripts/update-linux-headers.sh for arch in $ARCHLIST; do · line 114

Quoted 8 lines
scripts/update-linux-headers.sh +1 -1
@@ -108,7 +108,7 @@ for arch in $ARCHLIST; do
     if [ $arch = x86 ]; then
         cat <<-EOF >"$output/include/standard-headers/asm-x86/hyperv.h"
         /* this is a temporary placeholder until kvm_para.h stops including it */
-        EOF
+EOF
         cp "$tmpdir/include/asm/unistd_32.h" "$output/linux-headers/asm-x86/"
         cp "$tmpdir/include/asm/unistd_x32.h" "$output/linux-headers/asm-x86/"
         cp "$tmpdir/include/asm/unistd_64.h" "$output/linux-headers/asm-x86/"

Ugh, indeed, the minus sign after << causes the shell to strip only preceding tabs, not spaces. Apparently I expanded the tabs after I tested the script to work...

Fixes 40bf8e9aede0f9105a9e1e4aaf17b20aaa55f9a0

Thanks,
Roman.

Tested-by on v1 1/1
#3 lore raw
In reply to Gerd Hoffmann
Quoted 1 line · Gerd Hoffmann
Quoted 18 lines
---
 scripts/update-linux-headers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/update-linux-headers.sh +1 -1
index 8b847e279b..e2b159aa3d 100755
@@ -108,7 +108,7 @@ for arch in $ARCHLIST; do
     if [ $arch = x86 ]; then
         cat <<-EOF >"$output/include/standard-headers/asm-x86/hyperv.h"
         /* this is a temporary placeholder until kvm_para.h stops including it */
-        EOF
+EOF
         cp "$tmpdir/include/asm/unistd_32.h" "$output/linux-headers/asm-x86/"
         cp "$tmpdir/include/asm/unistd_x32.h" "$output/linux-headers/asm-x86/"
         cp "$tmpdir/include/asm/unistd_64.h" "$output/linux-headers/asm-x86/"
#4 lore raw
In reply to Gerd Hoffmann
Quoted 11 lines · Gerd Hoffmann
---
 scripts/update-linux-headers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/update-linux-headers.sh +0 -0
index 8b847e279b..e2b159aa3d 100755

scripts/update-linux-headers.sh for arch in $ARCHLIST; do · line 114

Quoted 8 lines
scripts/update-linux-headers.sh +1 -1
@@ -108,7 +108,7 @@ for arch in $ARCHLIST; do
     if [ $arch = x86 ]; then
         cat <<-EOF >"$output/include/standard-headers/asm-x86/hyperv.h"
         /* this is a temporary placeholder until kvm_para.h stops including it */
-        EOF
+EOF
         cp "$tmpdir/include/asm/unistd_32.h" "$output/linux-headers/asm-x86/"
         cp "$tmpdir/include/asm/unistd_x32.h" "$output/linux-headers/asm-x86/"
         cp "$tmpdir/include/asm/unistd_64.h" "$output/linux-headers/asm-x86/"

Queued, thanks.

Paolo