#!/bin/bash #two-line version: # if [! -f CMakeLists.txt ]; then git clone https://github.com/MultiCraft/MultiCraft.git && cd MultiCraft || exit 1; fi # cmake . -DOpenGL_GL_PREFERENCE=GLVND && make me="$0" if [ -z "$PREFIX" ]; then PREFIX=~/.local fi # This is NOT a mistake (MultiCraft is the git username)... GIT_REPOS_DIR="$HOME/Downloads/git/MultiCraft" # ...so srcRepo should be MultiCraft/MultiCraft in this case # (unless user ran script from a directory containing their own # MultiCraft directory). srcRepo="`pwd`/MultiCraft" if [ ! -d "$srcRepo" ]; then srcRepo="$GIT_REPOS_DIR/MultiCraft" if [ ! -d "$GIT_REPOS_DIR" ]; then mkdir -p "$GIT_REPOS_DIR" || customDie echo "mkdir -p '$GIT_REPOS_DIR' FAILED." fi fi if [ ! -d /tmp/MultiCraft ]; then mkdir /tmp/MultiCraft || customDie echo "mkdir -p '/tmp/MultiCraft' FAILED." fi artifactsPath=/tmp/MultiCraft/src.txt cat > $artifactsPath < $manifestPath < $dstShortcut <