public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/checksyscalls.sh and non-gnu sed
@ 2008-08-19 10:01 Thomas Volpini
  0 siblings, 0 replies; only message in thread
From: Thomas Volpini @ 2008-08-19 10:01 UTC (permalink / raw)
  To: linux-kernel

Hello,

the following patch makes the checksyscalls script work even on systems 
where sed is non-gnu.

best regards,
Thomas



diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
index 366f8c7..fdfb625 100755
--- a/scripts/checksyscalls.sh
+++ b/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
  }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-19 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 10:01 [PATCH] scripts/checksyscalls.sh and non-gnu sed Thomas Volpini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox