Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add submodule updates to the release script. #75

Merged
merged 3 commits into from
Dec 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions release/convert_to_release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ ROSETTA=`pwd`

# fi

#Make sure we have the latest of all the submodules
if [ "$debug" = false ];
then
cd $ROSETTA/tools
git submodule update --init --recursive

cd $ROSETTA/demos
git submodule update --init --recursive

cd $ROSETTA/documentation
git submodule update --init --recursive

cd $ROSETTA/main
git submodule update --init --recursive

fi


#prepare documentation
Expand Down Expand Up @@ -204,19 +220,10 @@ cd $ROSETTA/main/source/
# echo "git push -u origin weekly_releases/$branch_name"


# Removing .git dirs
cd $ROSETTA/tools
rm -rf .git

cd $ROSETTA/demos
rm -rf .git

cd $ROSETTA/main
rm -rf .git

cd $ROSETTA/documentation
rm -rf .git
# Removing .git dirs -- We need to also remove the .git dirs of any submodule, hence the find/recursive

cd $ROSETTA
find . -name '.git' -type d -prune -exec rm -rf '{}' '+'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clever


echo "Conversion to release is done!"

Expand Down