Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soxr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Sykes <rob@rob-Ideapad-S205.(none)>2013-03-01 12:19:35 +0400
committerRob Sykes <rob@rob-Ideapad-S205.(none)>2013-03-01 12:19:35 +0400
commite8ce89b5d11b6a6375969149bb5b8508b0b11467 (patch)
treeee9b3ddfe1ba58485b90420e8b2ad1e76208e699
parent3365b533621092e1095df888051ffc1c5fe647c4 (diff)
use parallelism for dist. build
-rwxr-xr-xdist3
-rwxr-xr-xgo6
2 files changed, 6 insertions, 3 deletions
diff --git a/dist b/dist
index 79bdcea..47a6bac 100755
--- a/dist
+++ b/dist
@@ -1,11 +1,12 @@
#!/bin/sh
+set -e
# SoX Resampler Library Copyright (c) 2007-13 robs@users.sourceforge.net
# Licence for this file: LGPL v2.1 See LICENCE for details.
# Makes the distribution tarball
rm -rf Release
-./go
+./go -j4
cd Release
make package_source
gunzip *.tar.gz
diff --git a/go b/go
index e6a7da9..c5172e0 100755
--- a/go
+++ b/go
@@ -2,6 +2,8 @@
# SoX Resampler Library Copyright (c) 2007-13 robs@users.sourceforge.net
# Licence for this file: LGPL v2.1 See LICENCE for details.
+case $1 in -j*) j=$1; shift;; esac # support -jX for parallel build/test
+
build=$1
test x$build = x && build=Release
@@ -11,5 +13,5 @@ mkdir -p $build
cd $build
cmake -DCMAKE_BUILD_TYPE=$build .. &&
- make &&
- (make test || echo "FAILURE details in $build/Testing/Temporary/LastTest.log")
+ make $j &&
+ (ctest $j || echo "FAILURE details in $build/Testing/Temporary/LastTest.log")