summaryrefslogtreecommitdiff
path: root/cpp/config/cygpath-unix.sh
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-08-06 16:14:03 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-08-06 16:14:03 +0200
commit7047b953adab26c7098cbfaea2b69f9d36231cd3 (patch)
tree8668c830838184ebc465554b85c085da42fb6f6a /cpp/config/cygpath-unix.sh
parentMissing files (diff)
parentRemoved Stream::format method, replace with startWriteEncaps parameter (diff)
downloadice-7047b953adab26c7098cbfaea2b69f9d36231cd3.tar.bz2
ice-7047b953adab26c7098cbfaea2b69f9d36231cd3.tar.xz
ice-7047b953adab26c7098cbfaea2b69f9d36231cd3.zip
Merge remote-tracking branch 'origin/encoding11' into mx
Conflicts: cpp/src/Ice/.depend cpp/src/Ice/.depend.mak cpp/src/slice2cpp/Gen.cpp
Diffstat (limited to 'cpp/config/cygpath-unix.sh')
-rwxr-xr-xcpp/config/cygpath-unix.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/config/cygpath-unix.sh b/cpp/config/cygpath-unix.sh
new file mode 100755
index 00000000000..9f0bd94c704
--- /dev/null
+++ b/cpp/config/cygpath-unix.sh
@@ -0,0 +1,4 @@
+#
+# Convert Windows path to Unix path, also escape whitespace.
+#
+v=`cygpath -u "$1"`; v=${v//[[:blank:]]/\\ }; v=${v/(/\\(}; echo ${v/)/\\)}