diff setup @ 26:175848778e77

Added initial upgrade support.
author Edho Prima Arief <me@myconan.net>
date Fri, 21 Jan 2011 05:33:37 +0000
parents 738a2da8b79c
children 5db1b912f66b
line wrap: on
line diff
--- a/setup	Fri Jan 21 05:32:12 2011 +0000
+++ b/setup	Fri Jan 21 05:33:37 2011 +0000
@@ -37,6 +37,10 @@
   uninstall_tcsh
 }
 
+update() {
+  [ -f "${HOME}/.tcsh_exec" ] && mv -f "${HOME}/.tcsh_exec" "${HOME}/.tcsh_init.after"
+}
+
 help() {
   cat <<EOF
 Usage: ${0} [install|uninstall]
@@ -50,6 +54,9 @@
   uninstall)
     uninstall
   ;;
+  update)
+    update
+  ;;
   *)
     help
   ;;