From: Petteri Aimonen <jpa@git.mail.kapsi.fi>
Date: Sun, 29 Dec 2013 18:48:30 +0000 (+0200)
Subject: Fix protoc-gen-nanopb when the path contains spaces
X-Git-Tag: 3.99.1~14^2~280
X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=7c9a8a132bc98741b97a186b1436f84e853f6fa3;p=apps%2Flow-level-can-service.git

Fix protoc-gen-nanopb when the path contains spaces
---

diff --git a/generator/protoc-gen-nanopb b/generator/protoc-gen-nanopb
index 90be6a5..2de5621 100755
--- a/generator/protoc-gen-nanopb
+++ b/generator/protoc-gen-nanopb
@@ -9,4 +9,5 @@
 # path is already set up properly and there is no need to give
 # --plugin= on the command line.
 
-exec python $(dirname $0)/nanopb_generator.py --protoc-plugin
+MYPATH=$(dirname "$0")
+exec python "$MYPATH/nanopb_generator.py" --protoc-plugin