/indra/viewer_components/updater/scripts/linux/update_install

https://bitbucket.org/lindenlab/viewer-beta/ · #! · 10 lines · 8 code · 2 blank · 0 comment · 0 complexity · c974be2fba2a6598c21a6859bc0230a9 MD5 · raw file

  1. #! /bin/bash
  2. INSTALL_DIR=$(cd "$(dirname "$0")/.." ; pwd)
  3. export LD_LIBRARY_PATH="$INSTALL_DIR/lib"
  4. bin/linux-updater.bin --file "$1" --dest "$INSTALL_DIR" --name "Second Life Viewer" --stringsdir "$INSTALL_DIR/skins/default/xui/en" --stringsfile "strings.xml"
  5. if [ $? -ne 0 ]
  6. then echo $3 >> "$2"
  7. fi
  8. rm -f "$1"