-
Notifications
You must be signed in to change notification settings - Fork 125
/
release.sh
executable file
·43 lines (41 loc) · 1.28 KB
/
release.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
#!/bin/bash
echo "Enter release version x.y.z [ENTER]:"
read version
# first do the submodule
cd okvis
git archive --format=zip --prefix=okvis/ --output=okvis-$version.zip master
#doxygen doxygen.config # regenerate docu
#scp -rq documentation/html/* [email protected]:public_html/software/docs/okvis/$version/
#if [$? -ne 0]; then
# echo "upload to server failed"
# exit 1
#fi
scp okvis-$version.zip [email protected]:public_html/software/
if [$? -ne 0]; then
echo "upload to server failed"
exit 1
fi
# now the whole thing
cd ..
#doxygen doxygen.config # regenerate docu
git archive --format=zip --prefix=okvis_ros/ --output=okvis_ros.zip master
unzip okvis_ros.zip -d .
rmdir okvis_ros/okvis
rm okvis_ros/.gitmodules
unzip okvis/okvis-$version.zip -d okvis_ros/
rm okvis_ros/release.sh # don't want to release this script...
zip -r okvis_ros-$version.zip okvis_ros/*
rm okvis_ros.zip
rm -rf okvis_ros
#scp -rq documentation/html/* [email protected]:public_html/software/docs/okvis_ros/$version/
#if [ $? -ne 0 ]; then
# echo "upload to server failed"
# exit 1
#fi
scp okvis_ros-$version.zip [email protected]:public_html/software/
#if [ $? -ne 0 ]; then
# echo "upload to server failed"
# exit 1
#fi
rm okvis/okvis-$version.zip
rm okvis_ros-$version.zip