Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 19th, 2013  |  syntax: None  |  size: 0.46 KB  |  hits: 98  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2.  
  3. # Change to game directory
  4. CANONPATH=`readlink -f "$0"`
  5. cd "`dirname "$CANONPATH"`"
  6.  
  7. # Check resource folders exist
  8. if [ ! -e data ]
  9. then
  10. echo "You are missing games resources `pwd`"
  11. echo "Your installation is incomplete!"
  12. exit 1
  13. fi
  14.  
  15.  
  16. MACHINE=`uname -m`
  17. if [ "$MACHINE" = x86_64 ]
  18. then
  19. LIBS=./LIB64
  20. BIN=./VVVVVV_64
  21. else
  22. LIBS=./LIB32
  23. BIN=./VVVVVV_32
  24. fi
  25.  
  26. # Run the game:
  27. export LD_LIBRARY_PATH=$LIBS:"$LD_LIBRARY_PATH"
  28. $BIN $@