github.com/mattdotmatt/gauge@v0.3.2-0.20160421115137-425a4cdccb62/build/packaging/gauge_setup (about)

     1  #!/bin/bash
     2  
     3  PREFIX=/usr
     4  
     5  function set_gaugeroot() {
     6      echo "Adding GAUGE_ROOT to environment..."
     7      echo "export GAUGE_ROOT=$PREFIX"  >> ~/.profile
     8      updated_profile=1
     9      source ~/.profile
    10      echo -e "GAUGE_ROOT has been set. If you face errors, run '$ source ~/.profile'\n"
    11  }
    12  
    13  function install_default_plugins() {
    14      $PREFIX/bin/gauge --install html-report
    15  }
    16  
    17  set_gaugeroot
    18  install_default_plugins