From 8ff55e733a833686975027feb2a4469db0f6631d Mon Sep 17 00:00:00 2001
From: Ashwin Ramesh <ashwin2007ray@gmail.com>
Date: Tue, 31 May 2016 16:37:08 +1000
Subject: [PATCH] Change execuable names to contain 'dgraph'

---
 README.md                                          | 14 +++++++-------
 client/{example => dgraphclient-go}/.gitignore     |  0
 client/{example => dgraphclient-go}/main.go        |  0
 dgraph/{uidassigner => dgraphassigner}/.gitignore  |  0
 dgraph/{uidassigner => dgraphassigner}/README.txt  |  0
 dgraph/{uidassigner => dgraphassigner}/main.go     |  0
 .../{uidassigner => dgraphassigner}/main_test.go   |  0
 dgraph/{loader => dgraphloader}/.gitignore         |  0
 dgraph/{loader => dgraphloader}/README.md          |  0
 dgraph/{loader => dgraphloader}/main.go            |  0
 dgraph/{loader => dgraphloader}/main_test.go       |  0
 dgraph/{loader => dgraphloader}/test_input         |  0
 12 files changed, 7 insertions(+), 7 deletions(-)
 rename client/{example => dgraphclient-go}/.gitignore (100%)
 rename client/{example => dgraphclient-go}/main.go (100%)
 rename dgraph/{uidassigner => dgraphassigner}/.gitignore (100%)
 rename dgraph/{uidassigner => dgraphassigner}/README.txt (100%)
 rename dgraph/{uidassigner => dgraphassigner}/main.go (100%)
 rename dgraph/{uidassigner => dgraphassigner}/main_test.go (100%)
 rename dgraph/{loader => dgraphloader}/.gitignore (100%)
 rename dgraph/{loader => dgraphloader}/README.md (100%)
 rename dgraph/{loader => dgraphloader}/main.go (100%)
 rename dgraph/{loader => dgraphloader}/main_test.go (100%)
 rename dgraph/{loader => dgraphloader}/test_input (100%)

diff --git a/README.md b/README.md
index ff19b7f7..71bfb04f 100644
--- a/README.md
+++ b/README.md
@@ -171,13 +171,13 @@ You can run this either as a single instance, or over multiple instances.
 
 Here we set number of instances to 2.
 ```
-$ cd $GOPATH/src/github.com/dgraph-io/dgraph/dgraph/uidassigner
+$ cd $GOPATH/src/github.com/dgraph-io/dgraph/dgraph/dgraphassigner
 
 # Run instance 0.
-$ go build . && ./uidassigner --numInstances 2 --instanceIdx 0 --rdfgzips $BENCHMARK_REPO/data/rdf-films.gz,$BENCHMARK_REPO/data/names.gz --uids ~/dgraph/uids/u0
+$ go build . && ./dgraphassigner --numInstances 2 --instanceIdx 0 --rdfgzips $BENCHMARK_REPO/data/rdf-films.gz,$BENCHMARK_REPO/data/names.gz --uids ~/dgraph/uids/u0
 
 # And either later, or on another server, run instance 1.
-$ go build . && ./uidassigner --numInstances 2 --instanceIdx 1 --rdfgzips $BENCHMARK_REPO/data/rdf-films.gz,$BENCHMARK_REPO/data/names.gz --uids ~/dgraph/uids/u1
+$ go build . && ./dgraphassigner --numInstances 2 --instanceIdx 1 --rdfgzips $BENCHMARK_REPO/data/rdf-films.gz,$BENCHMARK_REPO/data/names.gz --uids ~/dgraph/uids/u1
 ```
 
 Once the shards are generated, you need to merge them before the second pass. If you ran this as a single instance, merging isn't required.
@@ -193,10 +193,10 @@ Now that we have assigned UIDs for all the entities, the data is ready to be loa
 
 Let's do this step with 3 instances.
 ```
-$ cd $GOPATH/src/github.com/dgraph-io/dgraph/dgraph/loader
-$ go build . && ./loader --numInstances 3 --instanceIdx 0 --rdfgzips $BENCHMARK_REPO/data/names.gz,$BENCHMARK_REPO/data/rdf-films.gz --uids ~/dgraph/uasync.final --postings ~/dgraph/p0
-$ go build . && ./loader --numInstances 3 --instanceIdx 1 --rdfgzips $BENCHMARK_REPO/data/names.gz,$BENCHMARK_REPO/data/rdf-films.gz --uids ~/dgraph/uasync.final --postings ~/dgraph/p1
-$ go build . && ./loader --numInstances 3 --instanceIdx 2 --rdfgzips $BENCHMARK_REPO/data/names.gz,$BENCHMARK_REPO/data/rdf-films.gz --uids ~/dgraph/uasync.final --postings ~/dgraph/p2
+$ cd $GOPATH/src/github.com/dgraph-io/dgraph/dgraph/dgraphloader
+$ go build . && ./dgraphloader --numInstances 3 --instanceIdx 0 --rdfgzips $BENCHMARK_REPO/data/names.gz,$BENCHMARK_REPO/data/rdf-films.gz --uids ~/dgraph/uasync.final --postings ~/dgraph/p0
+$ go build . && ./dgraphloader --numInstances 3 --instanceIdx 1 --rdfgzips $BENCHMARK_REPO/data/names.gz,$BENCHMARK_REPO/data/rdf-films.gz --uids ~/dgraph/uasync.final --postings ~/dgraph/p1
+$ go build . && ./dgraphloader --numInstances 3 --instanceIdx 2 --rdfgzips $BENCHMARK_REPO/data/names.gz,$BENCHMARK_REPO/data/rdf-films.gz --uids ~/dgraph/uasync.final --postings ~/dgraph/p2
 ```
 You can run these over multiple machines, or just one after another.
 
diff --git a/client/example/.gitignore b/client/dgraphclient-go/.gitignore
similarity index 100%
rename from client/example/.gitignore
rename to client/dgraphclient-go/.gitignore
diff --git a/client/example/main.go b/client/dgraphclient-go/main.go
similarity index 100%
rename from client/example/main.go
rename to client/dgraphclient-go/main.go
diff --git a/dgraph/uidassigner/.gitignore b/dgraph/dgraphassigner/.gitignore
similarity index 100%
rename from dgraph/uidassigner/.gitignore
rename to dgraph/dgraphassigner/.gitignore
diff --git a/dgraph/uidassigner/README.txt b/dgraph/dgraphassigner/README.txt
similarity index 100%
rename from dgraph/uidassigner/README.txt
rename to dgraph/dgraphassigner/README.txt
diff --git a/dgraph/uidassigner/main.go b/dgraph/dgraphassigner/main.go
similarity index 100%
rename from dgraph/uidassigner/main.go
rename to dgraph/dgraphassigner/main.go
diff --git a/dgraph/uidassigner/main_test.go b/dgraph/dgraphassigner/main_test.go
similarity index 100%
rename from dgraph/uidassigner/main_test.go
rename to dgraph/dgraphassigner/main_test.go
diff --git a/dgraph/loader/.gitignore b/dgraph/dgraphloader/.gitignore
similarity index 100%
rename from dgraph/loader/.gitignore
rename to dgraph/dgraphloader/.gitignore
diff --git a/dgraph/loader/README.md b/dgraph/dgraphloader/README.md
similarity index 100%
rename from dgraph/loader/README.md
rename to dgraph/dgraphloader/README.md
diff --git a/dgraph/loader/main.go b/dgraph/dgraphloader/main.go
similarity index 100%
rename from dgraph/loader/main.go
rename to dgraph/dgraphloader/main.go
diff --git a/dgraph/loader/main_test.go b/dgraph/dgraphloader/main_test.go
similarity index 100%
rename from dgraph/loader/main_test.go
rename to dgraph/dgraphloader/main_test.go
diff --git a/dgraph/loader/test_input b/dgraph/dgraphloader/test_input
similarity index 100%
rename from dgraph/loader/test_input
rename to dgraph/dgraphloader/test_input
-- 
GitLab