Skip to content

Commit

Permalink
typo in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunharker committed Jul 4, 2015
1 parent 737548d commit 7492f5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .install/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# build.sh [--prefix=PREFIX] [--build=BUILDTYPE] \
# [--search=SEARCHPATH] [--tests] [CMake arguments]
# [--search=SEARCHPATH] [--test] [CMake arguments]
#
# Build the project with the supplied configurations,
# or else default values.
Expand All @@ -10,7 +10,7 @@
# (or some other CMake recognizable build type)
# SEARCHPATH is an optional location to search for headers
# and libraries (i.e. SEARCHPATH/include and SEARCHPATH/lib)
# If --tests is supplied then tests will be built.
# If --test is supplied then tests will be built.
# The default setting for PREFIX is /usr/local unless it is not writable
# in which case it is ~/.local.
# The default setting for BUILDTYPE is Release
Expand All @@ -32,13 +32,16 @@ CMAKE_ARGS+=$MASS

## Build
rm -rf build && mkdir build && cd build || exit 1
cmake $CMAKE_ARGS .. || exit 1
make && make install || exit 1
cmake $CMAKE_ARGS .. && make || exit 1

## Test
if [ -z $TEST ]; then exit 0; fi
make test
if [ ! $? -eq 0 ]; then
cat Testing/Temporary/LastTest.log
exit 1
if [[ "$TEST" == "YES" ]]; then
make test
if [ ! $? -eq 0 ]; then
cat Testing/Temporary/LastTest.log
exit 1
fi
fi

## Install
make install || exit 1
1 change: 1 addition & 0 deletions tests/circle.test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh

$1/chomp-matrix $2/circle.mat

0 comments on commit 7492f5c

Please sign in to comment.