]> git.saurik.com Git - cycript.git/blobdiff - makefile
Implemented structure field names, removed parentheses from NSDictionary CYON, and...
[cycript.git] / makefile
index 69a8c158402e3b2f8c2835c6c9ca1431dea01872..3b3229d399d140938f68f21906023fba10312ac9 100644 (file)
--- a/makefile
+++ b/makefile
@@ -20,18 +20,20 @@ clean:
 libcycript.plist: Bridge.def
        { \
            echo '({'; \
-           sed -e 's/^C/0/;s/^F/1/;s/^V/2/' Bridge.def | while read -r line; do \
+           grep '^[CFV]' Bridge.def | sed -e 's/^C/0/;s/^F/1/;s/^V/2/' | while read -r line; do \
                if [[ $$line == '' ]]; then \
                    continue; \
                fi; \
                set $$line; \
-               if [[ $$1 =~ [#fl:] ]]; then \
-                   continue; \
-               fi; \
                echo "$$2 = ($$1, \"$${3//\"/\\\"}\");";  \
            done; \
            echo '},{'; \
-           grep ^: Bridge.def | sed -e 's/^: \([^ ]*\) \(.*\)/"\1" = "\2";/'; \
+           grep '^:' Bridge.def | sed -e 's/^: \([^ ]*\) \(.*\)/"\1" = "\2";/'; \
+           echo '},{'; \
+           grep '^S' Bridge.def | sed -e 's/^S/0/' | while read -r line; do \
+               set $$line; \
+               echo "$$2 = ($$1, \"$${3//\"/\\\"}\");";  \
+           done; \
            echo '})'; \
        } >$@