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
Make update #2348
Make update #2348
Changes from all commits
ecf56d9
402abd1
d6ba54e
2df6f04
38b3d4a
9de8f02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,29 @@ scoop: all | |
@ echo "Running minimal example with SCOOP" | ||
python -m scoop -n 2 rmg.py -v testing/scoop/input.py | ||
|
||
.ONESHELL: | ||
update: | ||
@ echo "Updating RMG-py" | ||
@ echo "Please remember to stash unwanted changes." | ||
git status | ||
@ read -p "Are there any changes that are not staged for committed? [y|n] " user_input | ||
if [ "$$user_input" = "N" ] || [ "$$user_input" = "n" ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this work on your system? because I have the following error when I select y or n:
this message appears in both zsh and bash. I assume it has to do with mixing make and bash? |
||
git checkout main || true | ||
git pull git@github.com:ReactionMechanismGenerator/RMG-Py.git main || git pull https://github.com/ReactionMechanismGenerator/RMG-Py.git main || true | ||
conda activate rmg_env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be nice if the environment name weren't hard coded. Mine has a different name, and sometimes I have more than one. You could probably just add |
||
make | ||
conda deactivate | ||
exit | ||
elif [ "$$user_input" = "Y" ] || [ "$$user_input" = "y" ]; then | ||
@ echo "Please stash using 'git stash' and run this again" | ||
@ echo "After the operation is done, use 'git stash pop'" | ||
@ echo "Aborting..." | ||
exit | ||
fi | ||
@ echo Wrong input: $$user_input | ||
@ echo "Aborting..." | ||
exit | ||
|
||
######### | ||
# Section for setting up MOPAC calculations on the Travis-CI.org server | ||
ifeq ($(TRAVIS),true) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be "staged or committed" or "staged for commit"?