Skip to content

Commit

Permalink
Allow spaces in spec file path in tcframe script (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Jul 7, 2017
1 parent ddd6ab7 commit 5012275
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/tcframe
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ build() {
SPEC_FILE="$PWD/spec.cpp"
RUNNER_EXEC="$PWD/runner"

if [ ! -f $SPEC_FILE ]; then
echo "tcframe: build error: spec file $SPEC_FILE does not exist"
if [ ! -f "$SPEC_FILE" ]; then
echo "tcframe: build error: spec file '$SPEC_FILE' does not exist"
exit 1
fi

g++ -std=c++11 -D__TCFRAME_SPEC_FILE__="\"$SPEC_FILE\"" -I "$TCFRAME_HOME/include" $TCFRAME_CXX_FLAGS -o $RUNNER_EXEC "$TCFRAME_HOME/src/tcframe/runner.cpp"
g++ -std=c++11 -D__TCFRAME_SPEC_FILE__="\"$SPEC_FILE\"" -I "$TCFRAME_HOME/include" $TCFRAME_CXX_FLAGS -o "$RUNNER_EXEC" "$TCFRAME_HOME/src/tcframe/runner.cpp"
}

version() {
Expand Down

0 comments on commit 5012275

Please sign in to comment.