Sfoglia il codice sorgente

ENH: Fix "build.sh" to allow exection from any directory

Jean-Christophe Fillion-Robin 8 anni fa
parent
commit
9e7e7d4238
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      CMake/CircleCI/build.sh

+ 5 - 1
CMake/CircleCI/build.sh

@@ -1,6 +1,10 @@
-#!/bin/sh
+#!/bin/bash
 
 
 script_dir="`cd $(dirname $0); pwd`"
 script_dir="`cd $(dirname $0); pwd`"
 
 
+pushd $script_dir
+
 docker build -t commontk/ctk-test:opengl-qt4 $script_dir -f Dockerfile-qt4
 docker build -t commontk/ctk-test:opengl-qt4 $script_dir -f Dockerfile-qt4
 docker build -t commontk/ctk-test:opengl-qt5 $script_dir -f Dockerfile-qt5
 docker build -t commontk/ctk-test:opengl-qt5 $script_dir -f Dockerfile-qt5
+
+popd