Skip to contentSkip to conversation

gawk: fix command location in ptest script

PATCH New [email protected] 1 participant 1 message Sep 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gawk: fix command location in ptest script

From: Li Wang <[email protected]>

* Correct the command location in ptest scripts such as update the line "#!/bin/awk -f" to "#!/usr/bin/awk -f" in the file /usr/lib64/gawk/ptest/test/fcall_exit2.awk belongs to package gawk-ptest and the line "#!/usr/local/bin/gawk -f" to "#!/usr/bin/gawk -f" in the file /usr/lib64/gawk/ptest/test/fnarydel.awk

---
 meta/recipes-extended/gawk/gawk_4.1.3.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-extended/gawk/gawk_4.1.3.bb +2 -0
index 6ca7f3e..1aeb450 100644
@@ -43,4 +43,6 @@ do_install_ptest() {
 	for i in `grep -vE "@|^$|#|Gt-dummy" ${S}/test/Maketests |awk -F: '{print $1}'` Maketests; \
 	  do cp ${S}/test/$i* ${D}${PTEST_PATH}/test; \
 	done
+	sed -i -e 's|/usr/local/bin|${bindir}|g' \
+	    -e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk
 }
Signature · 1 line
2.8.1