-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release script w/o docu, since using docu branch automatically
- Loading branch information
1 parent
99b8096
commit 8cceef6
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |