Code Sample |
CUBE_INST_DIR=/opt/cube #where cube is installed CUBE_DIR=$HOME/.cube #where the user-writeable files will be setup_cube_at_HOME() { mkdir -p $CUBE_DIR/{demos,packages/DSL,savegames,screenshots} || exit ln -s $CUBE_INST_DIR/{bin_unix,data} $CUBE_DIR/ ln -s $CUBE_INST_DIR/packages/* $CUBE_DIR/packages/ } [ -d "$CUBE_DIR" ] || setup_cube_at_HOME |