Skip to content

Commit

Permalink
release script w/o docu, since using docu branch automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
sleutenegger committed Feb 4, 2016
1 parent 99b8096 commit 8cceef6
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions release.sh
@@ -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/* sleutene@shell1.doc.ic.ac.uk:public_html/software/docs/okvis/$version/
#if [$? -ne 0]; then
# echo "upload to server failed"
# exit 1
#fi
scp okvis-$version.zip sleutene@shell1.doc.ic.ac.uk: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/* sleutene@shell1.doc.ic.ac.uk:public_html/software/docs/okvis_ros/$version/
#if [ $? -ne 0 ]; then
# echo "upload to server failed"
# exit 1
#fi
scp okvis_ros-$version.zip sleutene@shell1.doc.ic.ac.uk: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

0 comments on commit 8cceef6

Please sign in to comment.