Skip to content

Instantly share code, notes, and snippets.

@AMZN-alexpete
Last active November 8, 2022 19:32
Show Gist options
  • Save AMZN-alexpete/3b452de2389b1e1e50883aa84c0f2ef0 to your computer and use it in GitHub Desktop.
Save AMZN-alexpete/3b452de2389b1e1e50883aa84c0f2ef0 to your computer and use it in GitHub Desktop.
b.sh
#! /bin/bash
if [ -f "engine.json" ]; then
echo cmake --build build/linux --target Editor AutomatedTesting.GameLauncher --config profile -j 8
time cmake --build build/linux --target Editor AutomatedTesting.GameLauncher --config profile -j 8
elif [ -f "project.json" ]; then
project=$(grep -oP '(?<="project_name": ")[^"]*' project.json)
echo "cmake --build build/linux --target Editor ${project}.GameLauncher --config profile -j 8"
time cmake --build build/linux --target Editor ${project}.GameLauncher --config profile -j 8
else
echo "No engine.json or project.json detected, cannot build"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment