comparison setup @ 128:66a1d79c4161

Cleaned up unused functions.
author Edho Prima Arief <edho@myconan.net>
date Thu, 27 Oct 2011 16:29:39 +0700
parents a7484f2c9616
children 70928bbbd6cb fcef92b3f37f
comparison
equal deleted inserted replaced
127:a7484f2c9616 128:66a1d79c4161
83 _echo "Removed autostart from ${_script}" 83 _echo "Removed autostart from ${_script}"
84 ;; 84 ;;
85 esac 85 esac
86 } 86 }
87 87
88 linker() {
89 echo "Creating symlink: ${1} => ~/${2}"
90 [ -f "${1}" ] && rm "${PWD}/$"
91 ln -fs "${PWD}/${1}" "${HOME}/${2}"
92 }
93
94 _uninstall_init() {
95 script="${1}"
96 scripttmp="${1}.new.tmp"
97 hashdata="${2}"
98 if [ -f "${script}" ]; then
99 grep -v "${hashdata}" "${script}" > "${scripttmp}"
100 mv "${scripttmp}" "${script}"
101 fi
102 }
103
104 _help() { 88 _help() {
105 cat <<EOF 89 cat <<EOF
106 Usage: ${0} [install|uninstall] 90 Usage: ${0} [install|uninstall]
107 EOF 91 EOF
108 } 92 }