Skip to contentSkip to conversation

scripts/checksyscalls.sh: fix for non-gnu sed

PATCH In review [email protected] 1 participant 1 message Oct 29, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 6/13 scripts/checksyscalls.sh: fix for non-gnu sed

From: Thomas Volpini <[email protected]>

Make the checksyscalls script work even on systems where sed is non-gnu.

---

 scripts/checksyscalls.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/checksyscalls.sh renamed from scripts/checksyscalls.sh~scripts-checksyscallssh-fix-for-non-gnu-sed +2 -2
diff -puN scripts/checksyscalls.sh~scripts-checksyscallssh-fix-for-non-gnu-sed scripts/checksyscalls.sh
@@ -113,10 +113,10 @@ EOF
 }
 
 syscall_list() {
-sed -n -e '/^\#define/ { s/[^_]*__NR_\([^[:space:]]*\).*/\
+sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\
 \#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\
 \#warning syscall \1 not implemented\
-\#endif/p }' $1
+\#endif/p' $1
 }
 
 (ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \

_