Browse Source

Replace Packages/RUNME.sh and CLEANUP.sh with Makefile, remove unsupported block.

Tim Burks 9 years ago
parent
commit
ab567e5e88
4 changed files with 2 additions and 32 deletions
  1. 0 8
      Packages/CLEANUP.sh
  2. 1 13
      Packages/CgRPC/Sources/call.c
  3. 1 1
      Packages/Makefile
  4. 0 10
      Packages/RUNME.sh

+ 0 - 8
Packages/CLEANUP.sh

@@ -1,8 +0,0 @@
-#!/bin/sh
-#
-# Run this to clean up all Swift gRPC packages
-#
-cd CgRPC; make clean; cd ..
-cd gRPC; make clean; cd ..
-cd Server; make clean; cd ..
-cd Client; make clean; cd ..

+ 1 - 13
Packages/CgRPC/Sources/call.c

@@ -58,19 +58,7 @@ grpc_call_error cgrpc_call_perform(cgrpc_call *call, long tag) {
   grpc_call_error error = grpc_call_start_batch(call->call,
                                                 call->ops,
                                                 call->ops_count,
-                                                //cgrpc_create_tag(tag),
-                                                (^(bool success){
-    if (!success) {
-      if (call) {
-        printf("tag %ld\n", tag);
-      } else {
-        return;
-      }
-    } else {
-      printf("OK tag %ld\n", tag);
-
-    }
-  }),
+                                                cgrpc_create_tag(tag),
                                                 NULL);
   return error;
 }

+ 1 - 1
Packages/Makefile

@@ -1,5 +1,5 @@
 
-all: 	
+demo: 	
 	cd CgRPC; make clean; make; cd ..
 	cd gRPC; make clean; make; cd ..
 	cd Server; make clean; make; make; make install; cd ..

+ 0 - 10
Packages/RUNME.sh

@@ -1,10 +0,0 @@
-#!/bin/sh
-#
-# Run this for a basic sanity check of the Swift gRPC packages
-#
-cd CgRPC; make clean; make; cd ..
-cd gRPC; make clean; make; cd ..
-cd Server; make clean; make; make; make install; cd ..
-cd Client; make clean; make; make; make install; cd ..
-Server/Server &
-Client/Client