/install

http://github.com/nddrylliog/oc · Shell · 12 lines · 8 code · 3 blank · 1 comment · 2 complexity · d515d22628625903005badeb40f340dc MD5 · raw file

  1. #!/bin/sh
  2. if [[ ! -e $PREFIX ]]; then
  3. PREFIX=/usr
  4. fi
  5. LIBPATH=$PREFIX/lib
  6. sudo cp -f plugins/*.so $LIBPATH/
  7. if [[ ! -e $PREFIX/bin/oc ]]; then
  8. sudo ln -s $PWD/bin/oc /usr/bin/oc
  9. fi