-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathother_mod.sh
executable file
·54 lines (40 loc) · 1.35 KB
/
other_mod.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#! /bin/bash
pushd /v-rep/programming
find . -type d -maxdepth 1 -mindepth 1 | sort -u > /v-rep/cloning-dir.txt
popd
echo "Full repos list"
cat /v-rep/cloning-dir.txt
# Ignore some repo in this run
sed -i '/simCodeEditor/d' /v-rep/cloning-dir.txt
sed -i '/wsRemoteApi/d' /v-rep/cloning-dir.txt
sed -i '/legacyRemoteApi/d' /v-rep/cloning-dir.txt
sed -i '/zmqRemoteApi/d' /v-rep/cloning-dir.txt
sed -i '/coppeliaSimClient/d' /v-rep/cloning-dir.txt
sed -i '/coppeliaSimClientPython/d' /v-rep/cloning-dir.txt
# Ignore header files
sed -i '/include/d' /v-rep/cloning-dir.txt
# Exclude Windows-specific repo
sed -i '/simExtCam/d' /v-rep/cloning-dir.txt
sed -i '/simExtJoystick/d' /v-rep/cloning-dir.txt
echo "Excluding some repos"
cat /v-rep/cloning-dir.txt
REPOS=$(cat /v-rep/cloning-dir.txt)
for REPO in $REPOS
do
pushd /v-rep/programming/$REPO
cmake -DCMAKE_BUILD_TYPE=Release -B build -S .
cmake --build build
cmake --install build
if [ $? -eq 0 ]; then
echo "$REPO -- Success" >> /v-rep/result.txt
else
echo "$REPO -- Failed" >> /v-rep/result.txt
fi
popd
rm -rf /v-rep/programming/$REPO
done
rm /v-rep/cloning-dir.txt
#RUN rm -r -v programming/simPovRay/binaries/
#RUN find /v-rep/ -type f -name '*.so' | xargs cp -t /release
#RUN find /v-rep/ -type f -name '*.so.*' | xargs cp -t /release
#RUN ls /release