Skip to contentSkip to conversation

scripts/checksyscalls.sh and non-gnu sed

PATCH New Thomas Volpini 1 participant 1 message Aug 19, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/checksyscalls.sh and non-gnu sed

Hello,

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

best regards,
Thomas

scripts/checksyscalls.sh +2 -2
index 366f8c7..fdfb625 100755
@@ -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
 }