[Groonga-commit] groonga/gcs [master] Use npm root command to locate the example SDF

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 28日 (木) 18:03:42 JST


Yoji SHIDARA	2012-06-28 18:03:42 +0900 (Thu, 28 Jun 2012)

  New Revision: 8634342d3fe474b9843a8a4df266915f902ebfca
  https://github.com/groonga/gcs/commit/8634342d3fe474b9843a8a4df266915f902ebfca

  Log:
    Use npm root command to locate the example SDF

  Modified files:
    bin/gcs-import-examples

  Modified: bin/gcs-import-examples (+1 -1)
===================================================================
--- bin/gcs-import-examples    2012-06-28 16:31:44 +0900 (e0ce7fe)
+++ bin/gcs-import-examples    2012-06-28 18:03:42 +0900 (17b3c0e)
@@ -47,7 +47,7 @@ echo
 
 echo
 echo "==== Indexing data"
-sdf_path=$(cd $(dirname $0);pwd)/../examples/example.sdf.json
+sdf_path=`npm -g root`/gcs/examples/example.sdf.json
 
 curl -X POST --upload-file $sdf_path --header "Content-Type: application/json" -H "Host: doc-example-00000000000000000000000000.localhost" http://127.0.0.1:3000/2011-02-01/documents/batch
 echo
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
다운로드 



Groonga-commit メーリングリストの案内
Back to archive index