Răsfoiți Sursa

fixed bug in h2pair and create* header include lines

Former-commit-id: 3f622aa9dbe1e460cf3eed66e2c5f35bd987648b
jalec 13 ani în urmă
părinte
comite
f3fc7367a6
4 a modificat fișierele cu 12 adăugiri și 12 ștergeri
  1. 2 2
      create_index_vbo.h
  2. 2 2
      create_mesh_vbo.h
  3. 2 2
      create_vector_vbo.h
  4. 6 6
      h2pair.sh

+ 2 - 2
create_index_vbo.h

@@ -1,5 +1,5 @@
-#ifndef IGL_CREATE_INDEX_VBO
-#define IGL_CREATE_INDEX_VBO
+#ifndef IGL_CREATE_INDEX_VBO_H
+#define IGL_CREATE_INDEX_VBO_H
 // NOTE: It wouldn't be so hard to template this using Eigen's templates
 
 #include <Eigen/Core>

+ 2 - 2
create_mesh_vbo.h

@@ -1,5 +1,5 @@
-#ifndef IGL_CREATE_MESH_VBO
-#define IGL_CREATE_MESH_VBO
+#ifndef IGL_CREATE_MESH_VBO_H
+#define IGL_CREATE_MESH_VBO_H
 // NOTE: It wouldn't be so hard to template this using Eigen's templates
 
 #include <Eigen/Core>

+ 2 - 2
create_vector_vbo.h

@@ -1,5 +1,5 @@
-#ifndef IGL_CREATE_VECTOR_VBO
-#define IGL_CREATE_VECTOR_VBO
+#ifndef IGL_CREATE_VECTOR_VBO_H
+#define IGL_CREATE_VECTOR_VBO_H
 // NOTE: It wouldn't be so hard to template this using Eigen's templates
 
 #include <Eigen/Core>

+ 6 - 6
h2pair.sh

@@ -29,9 +29,9 @@ do
     continue;
   fi
 
-  if ! grep -q "^\/\/ Implementation$" "$i"
+  if ! grep -q "^\/\/ Implementation *$" "$i"
   then
-    echo "Skipping $i because it does not match ^\/\/ Implementation$ "
+    echo "Skipping $i because it does not match ^\/\/ Implementation *$ "
     continue;
   fi
 
@@ -42,15 +42,15 @@ do
 
   before=`sed -n '/^\/\/ Implementation$/q;p' "$i"`;
 
-  if ! echo "$before" | grep -q "^\#ifndef IGL_${FILENAME}_H$"
+  if ! echo "$before" | grep -q "^\#ifndef IGL_${FILENAME}_H"
   then
-    echo "Skipping $i because it does not match ^#ifndef IGL_${FILENAME}_H$ "
+    echo "Skipping $i because it does not match ^#ifndef IGL_${FILENAME}_H "
     continue;
   fi
 
-  if ! echo "$before" | grep -q "^\#define IGL_${FILENAME}_H$"
+  if ! echo "$before" | grep -q "^\#define IGL_${FILENAME}_H"
   then
-    echo "Skipping $i because it does not match ^#define IGL_${FILENAME}_H$ "
+    echo "Skipping $i because it does not match ^#define IGL_${FILENAME}_H "
     continue;
   fi