C# Improve property injector script 32/90832/1
authorNick Holland <nick.holland@partner.samsung.com>
Tue, 4 Oct 2016 10:31:02 +0000 (11:31 +0100)
committerNick Holland <nick.holland@partner.samsung.com>
Tue, 4 Oct 2016 10:31:02 +0000 (11:31 +0100)
Syntax for including files with grep didn't always work

Change-Id: I3630c6e903719b06afb69fec9d368f9bf0968bf9

plugins/dali-swig/property-wrapper.rb

index 5e60919..75c82f1 100755 (executable)
@@ -360,7 +360,7 @@ def writeDaliCoreProperties
     puts("Scanning folder: #{$daliCorePath}\n\n");
 
     # Executed a recursive grep over dali-core for the DALI_PROPERTY macro
     puts("Scanning folder: #{$daliCorePath}\n\n");
 
     # Executed a recursive grep over dali-core for the DALI_PROPERTY macro
-    result =`grep --include *.cpp  -r "DALI_PROPERTY( \" #{$daliCorePath}`
+    result =`grep --include \\*.cpp  -r "DALI_PROPERTY( \" #{$daliCorePath}`
 
 
     # We now have a list of lines that look like this:
 
 
     # We now have a list of lines that look like this:
@@ -408,7 +408,7 @@ def writeDaliToolkitProperties
     # DALI_PROPERTY_REGISTRATION
     # DALI_ANIMATABLE_PROPERTY_REGISTRATION
     # DALI_CHILD_PROPERTY_REGISTRATION
     # DALI_PROPERTY_REGISTRATION
     # DALI_ANIMATABLE_PROPERTY_REGISTRATION
     # DALI_CHILD_PROPERTY_REGISTRATION
-    result =`grep --include *.cpp  -w 'Control::Impl::SetProperty\\|DALI_ANIMATABLE_PROPERTY_REGISTRATION_WITH_DEFAULT(\\|DALI_CHILD_PROPERTY_REGISTRATION(\\|DALI_ANIMATABLE_PROPERTY_REGISTRATION(\\|DALI_PROPERTY_REGISTRATION' -r #{$daliToolkitPath}`
+    result =`grep --include \\*.cpp  -w 'Control::Impl::SetProperty\\|DALI_ANIMATABLE_PROPERTY_REGISTRATION_WITH_DEFAULT(\\|DALI_CHILD_PROPERTY_REGISTRATION(\\|DALI_ANIMATABLE_PROPERTY_REGISTRATION(\\|DALI_PROPERTY_REGISTRATION' -r #{$daliToolkitPath}`
 
     if( result == "" )
       puts("Error parsing #{$daliToolkitPath} no properties found")
 
     if( result == "" )
       puts("Error parsing #{$daliToolkitPath} no properties found")