diff options
author | M S Vishwanath Bhat <vishwanath@gluster.com> | 2012-01-12 23:30:00 +0530 |
---|---|---|
committer | M S Vishwanath Bhat <vishwanath@gluster.com> | 2012-01-12 23:35:15 +0530 |
commit | f40ffd8028d3dd4f3eef4a3409c531af941d23f0 (patch) | |
tree | c2bcf865c0623761b01ca5929d8caa3c78d527bf /helper_scrips/glusterfs_uninstall.sh | |
parent | 254e67dbd7a35d38dbe7a5f525955adeb86f5939 (diff) |
renaming helper_scrips->helper_scripts and cleaning up the whitespaces
Change-Id: I6004e4066fab30e14716ef6475c1281270974d2b
Signed-off-by: M S Vishwanath Bhat <vishwanath@gluster.com>
Diffstat (limited to 'helper_scrips/glusterfs_uninstall.sh')
-rwxr-xr-x | helper_scrips/glusterfs_uninstall.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/helper_scrips/glusterfs_uninstall.sh b/helper_scrips/glusterfs_uninstall.sh deleted file mode 100755 index 31a000d..0000000 --- a/helper_scrips/glusterfs_uninstall.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -#set -x; - -function _init () -{ - # echo $0; - # echo $#; - # echo $1; - set -u; - if [ $# -lt 1 ]; then - echo "usage: download_and_install <glusterfs-version>"; - exit 1; - fi - - version=$1; - echo $version; - echo $version | grep "glusterfs" 2>/dev/null 1>/dev/null; - if [ $? -ne 0 ]; then - echo "given argument is not glusterfs"; - exit 1; - fi -} - -function un_install () -{ - cd /root/$version; - - cd build; - make uninstall && make clean && make distclean; - - cd /root; -} - -main () -{ - - if [ ! -d $version ]; then - echo "the glusterfs version ($version) directory is not there." - return 1; - fi - - un_install; -} - -_init "$@" && main "$@" |