Clean up the web build process a bit while we're at it * Add 'custom_commands' to run npm install in CMakeLists * Generate tsconfig files for CMake preset configurations * Rename local variables to _snake_case in CMakeLists
14 lines
178 B
Bash
Executable File
14 lines
178 B
Bash
Executable File
#!/bin/bash
|
|
|
|
tmpfile=$(mktemp /tmp/quiet_exec.XXXX)
|
|
BUILD_DIR=$1
|
|
eval "${@:2}" >$tmpfile 2>&1
|
|
if [ $? -eq 0 ]
|
|
then
|
|
rm $tmpfile
|
|
exit 0
|
|
else
|
|
cat $tmpfile
|
|
exit 1
|
|
fi
|