-
-
Save AMZN-alexpete/3b452de2389b1e1e50883aa84c0f2ef0 to your computer and use it in GitHub Desktop.
b.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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