changeset 234:b9babbd3c0fa

Surround double quotes for file containing spaces
author Chayoung You <yousbe@gmail.com>
date Fri, 21 Dec 2018 17:50:17 +0900
parents 93e66524d78a
children def58b9d22c6
files plat/win32/update_scopedb.cmd
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plat/win32/update_scopedb.cmd	Mon Dec 17 19:45:03 2018 +0900
+++ b/plat/win32/update_scopedb.cmd	Fri Dec 21 17:50:17 2018 +0900
@@ -60,7 +60,7 @@
 echo Running cscope >> %LOG_FILE%
 if NOT ["%FILE_LIST_CMD%"]==[""] (
     if ["%PROJECT_ROOT%"]==["."] (
-        call %FILE_LIST_CMD% > %DB_FILE%.files
+        for /F "usebackq delims=" %%F in (`%FILE_LIST_CMD%`) do @echo "%%F">%DB_FILE%.files
     ) else (
         rem Potentially useful:
         rem http://stackoverflow.com/questions/9749071/cmd-iterate-stdin-piped-from-another-command