diff setup @ 688:17cacf387f7c

Update vendor ...also update scripts to support syntax subdirectories
author nanaya <me@nanaya.pro>
date Fri, 21 Oct 2022 20:17:06 +0900
parents 850b04203732
children a9fbb21ab09c
line wrap: on
line diff
--- a/setup	Thu Oct 13 16:16:07 2022 +0900
+++ b/setup	Fri Oct 21 20:17:06 2022 +0900
@@ -155,6 +155,17 @@
     _echon "[${file_name}]"
     _rc "${1}" "../vendor/vim-${x}/${file_name}" ".vim/${x}/${file_name}" > /dev/null
   done
+  for d in "${basedir}/vendor/vim-${x}"/*/; do
+    test -d "$d" || continue
+    dir_name="`basename "/${d}"`"
+    _echon "[${dir_name}]"
+    mkdir -p ".vim/${x}/${dir_name}"
+    for i in "${d}"/*.vim; do
+      file_name="`basename "/${i}"`"
+      _echon "[${file_name}]"
+      _rc "${1}" "../vendor/vim-${x}/${dir_name}/${file_name}" ".vim/${x}/${dir_name}/${file_name}" > /dev/null
+    done
+  done
   _echo ...done
 }