Skip to content

Commit

Permalink
working on improved load / save / reset
Browse files Browse the repository at this point in the history
  • Loading branch information
MathCancer committed Aug 17, 2024
1 parent a6407ed commit 2010422
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
Empty file added config/test_dir/blah.txt
Empty file.
2 changes: 1 addition & 1 deletion sample_projects/rules_sample/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ custom.o: ./custom_modules/custom.cpp
reset:
rm -f *.cpp
cp ./sample_projects/Makefile-default Makefile
rm -f ./custom_modules/*
rm -rf ./custom_modules/*
touch ./custom_modules/empty.txt
touch ALL_CITATIONS.txt
touch ./core/PhysiCell_cell.cpp
Expand Down
31 changes: 31 additions & 0 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
save:
echo "Saving project as $(PROJ) ... "
mkdir -p ./user_projects
mkdir -p ./user_projects/$(PROJ)
mkdir -p ./user_projects/$(PROJ)/custom_modules
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
cp VERSION.txt ./user_projects/$(PROJ)
cp ./config/* ./user_projects/$(PROJ)/config
cp ./custom_modules/* ./user_projects/$(PROJ)/custom_modules

load:
echo "Loading project from $(PROJ) ... "
cp ./user_projects/$(PROJ)/main.cpp .
cp ./user_projects/$(PROJ)/Makefile .
cp ./user_projects/$(PROJ)/config/* ./config/
cp ./user_projects/$(PROJ)/custom_modules/* ./custom_modules/


reset:
rm -f *.cpp PhysiCell_cell.o
cp ./sample_projects/Makefile-default Makefile
rm -f ./custom_modules/*
touch ./custom_modules/empty.txt
touch ALL_CITATIONS.txt
touch ./core/PhysiCell_cell.cpp
rm ALL_CITATIONS.txt
cp ./config/PhysiCell_settings-backup.xml ./config/PhysiCell_settings.xml
touch ./config/empty.csv
rm ./config/*.csv

0 comments on commit 2010422

Please sign in to comment.