File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
set -e
7
7
8
- WORKSPACE =$1
8
+ SOURCE_DIR =$1
9
9
BUILD_DIR=$2
10
10
INSTALL_DIR=$3
11
11
12
12
echo " Running: $0 $* "
13
13
14
14
function print_usage() {
15
15
echo " $( basename $0 ) - test all examples standalone"
16
- echo " Usage: $( basename $0 ) <workspace_dir > <build_dir> <install_dir> <list-of-examples-to-run>"
16
+ echo " Usage: $( basename $0 ) <source_dir > <build_dir> <install_dir> <list-of-examples-to-run>"
17
17
}
18
18
19
19
if [ " $3 " == " " ]; then
@@ -28,13 +28,13 @@ if [ "$4" == "" ]; then
28
28
exit 0
29
29
fi
30
30
31
- if [ ! -f $WORKSPACE /README.md ]; then
32
- echo -e " error: incorrect <workspace_dir >: $WORKSPACE \n"
31
+ if [ ! -f $SOURCE_DIR /README.md ]; then
32
+ echo -e " error: incorrect <source_dir >: $SOURCE_DIR \n"
33
33
print_usage
34
34
exit 1
35
35
fi
36
36
37
- WORKSPACE =$( realpath $WORKSPACE )
37
+ SOURCE_DIR =$( realpath $SOURCE_DIR )
38
38
BUILD_DIR=$( realpath $BUILD_DIR )
39
39
INSTALL_DIR=$( realpath $INSTALL_DIR )
40
40
@@ -51,7 +51,7 @@ make -j$(nproc) install
51
51
set +x
52
52
53
53
for ex in $EXAMPLES ; do
54
- SRC_DIR=" ${WORKSPACE } /examples/$ex "
54
+ SRC_DIR=" ${SOURCE_DIR } /examples/$ex "
55
55
BLD_DIR=" ${BUILD_DIR} /examples-standalone/$ex "
56
56
57
57
if [ ! -d $SRC_DIR ]; then
You can’t perform that action at this time.
0 commit comments