Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Build: Generate functions without using sed extended regex
Browse files Browse the repository at this point in the history
Change-Id: Ic665d941c11252fb100853f64f0ab8e95659dd73
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
  • Loading branch information
Gabriel Schulhof committed Aug 22, 2016
1 parent d78753d commit 0a6619a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-functions.sh
Expand Up @@ -34,7 +34,7 @@ echo 'void InitFunctions(Handle<Object> exports, Handle<Object> module) {' >> ge
find src -type f | while read filename; do
cat "${filename}" | grep NAN_METHOD;
done | \
sed -r -e 's/^NAN_METHOD\s*\(\s*//' -e 's/\s*\).*$//' -e 's/^bind_//' | \
sed -e 's/^NAN_METHOD[[:space:]]*([[:space:]]*//' -e 's/[[:space:]]*).*$//' -e 's/^bind_//' | \
sort -u | \
while read methodname; do
echo "NAN_METHOD(bind_${methodname});" >> generated/function-prototypes.h
Expand Down

0 comments on commit 0a6619a

Please sign in to comment.