You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/07/22 07:29:37 UTC

[20/50] couchdb commit: updated refs/heads/developer-preview-2.0 to 2a31bca

check build scripts for bashisms


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/4fee5877
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/4fee5877
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/4fee5877

Branch: refs/heads/developer-preview-2.0
Commit: 4fee5877a474664a1bcceda05cc4cef1cbe88a9e
Parents: 4dc3eaf
Author: Jan Lehnardt <ja...@apache.org>
Authored: Mon Jun 22 22:01:50 2015 +0200
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Wed Jun 24 23:06:59 2015 +0200

----------------------------------------------------------------------
 test/build/test-configure.sh | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/4fee5877/test/build/test-configure.sh
----------------------------------------------------------------------
diff --git a/test/build/test-configure.sh b/test/build/test-configure.sh
index ae7565c..4a20988 100755
--- a/test/build/test-configure.sh
+++ b/test/build/test-configure.sh
@@ -13,6 +13,8 @@
 
 # requires shunit2 to be in $PATH
 # http://shunit2.googlecode.com/
+# uses `checkbashisms` if in $PATH
+
 
 SHUNIT2=`which shunit2`
 
@@ -25,7 +27,29 @@ if [ -z "$SHUNIT2" -o ! -x "$SHUNIT2" ]; then
     exit 1
 fi
 
-CMD="./configure2 --test "
+CHECKBASHISMS=`which checkbashisms`
+
+if [ -n "$CHECKBASHISMS" -a -x "$CHECKBASHISMS" ]; then
+    echo "Checking for bash-isms"
+
+    echo "  in ./configure"
+    `$CHECKBASHISMS -npfx configure`
+    if [ $? -ne 0 ]; then
+        echo "./configure includes bashisms, do not release"
+    fi
+    echo "  done"
+
+    echo "  in ./build-aux/couchdb-build-release.sh"
+    `$CHECKBASHISMS -npfx ./build-aux/couchdb-build-release.sh`
+    if [ $? -ne 0 ]; then
+        echo "./build-aux/couchdb-build-release.sh includes bashisms, do not release"
+    fi
+    echo "  done"
+fi
+
+
+# shunit2 tests
+CMD="./configure --test "
 
 test_defaults() {
     EXPECT="/usr/local /usr/local /usr/local/bin /usr/local/libexec /usr/local/etc /usr/local/share /usr/local/share /usr/local/var /usr/local/var/run /usr/local/share/doc /usr/local/lib /usr/local/var/lib /usr/local/var/lib /usr/local/var/log"