Skip to content

Instantly share code, notes, and snippets.

@nogweii
Created December 27, 2008 07:26
Show Gist options
  • Select an option

  • Save nogweii/40219 to your computer and use it in GitHub Desktop.

Select an option

Save nogweii/40219 to your computer and use it in GitHub Desktop.
#!/bin/sh
# planeshift.sh - A generic launcher for the ps* stuff in the SVN co.
# This file can be anywhere in the file system, just make sure PLANES (set below) is correct.
# Note: If you just copied/pasted the commands from the compiling guide, change the 2 export commands to
# use "../cs/" instead of "../crystalspace/"
#
# USAGE: ./planeshift.sh [setup|launch|client]
PLANES=$HOME/local/planeshift # The location of the planeshift SVN checkout
cd $PLANES
export LD_LIBRARY_PATH="$PLANES/../cal3d/src/cal3d/.libs/:$(pwd)/../crystalspace/:$LD_LIBRARY_PATH"
export CRYSTAL="$PLANES/../crystalspace"
./ps$1 -cfgset=PlaneShift.UserConfigPath=$PLANES/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment