changeset 579:fd416344f175

Fix uninstall message
author nanaya <me@myconan.net>
date Sun, 11 Oct 2015 04:08:38 +0900
parents 184635b813e1
children 5a0f3d427979
files setup
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/setup	Sun Oct 11 04:00:47 2015 +0900
+++ b/setup	Sun Oct 11 04:08:38 2015 +0900
@@ -140,7 +140,12 @@
 }
 
 _vim_autoload() {
-  _echon "Copying vim autoloads..."
+  case "${1}" in
+    install) _echon "Copying";;
+    uninstall) _echon "Removing";;
+  esac
+  _echon " vim autoloads..."
+
   for i in "${basedir}/vendor/vim-autoload"/*.vim; do
     autoload_file_name="`basename "/${i}"`"
     _echon "[${autoload_file_name}]"
@@ -150,7 +155,12 @@
 }
 
 _vim_syntax() {
-  _echon "Copying vim syntaxes..."
+  case "${1}" in
+    install) _echon "Copying";;
+    uninstall) _echon "Removing";;
+  esac
+  _echon " vim syntaxes..."
+
   for i in "${basedir}/vendor/vim-syntax"/*.vim; do
     syntax_file_name="`basename "/${i}"`"
     _echon "[${syntax_file_name}]"