Skip to content

Commit

Permalink
the Makefile save function sets the PROJ variable in the Makefile to …
Browse files Browse the repository at this point in the history
…the actual name the project was saved with.
  • Loading branch information
elmbeech committed Jun 9, 2024
1 parent 74d3b12 commit ef5e722
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/Makefile-default
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/biorobots/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/cancer_biorobots/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/cancer_immune/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/celltypes3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/heterogeneity/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/interactions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/mechano/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/physimess/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/pred_prey_farmer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/rules_sample/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/template/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/virus_macrophage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects/worm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects_intracellular/boolean/template_BM/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions sample_projects_intracellular/boolean/tutorial/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions unit_tests/custom_DCs_2substrates/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down
1 change: 1 addition & 0 deletions unit_tests/custom_voxel_values/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ save:
mkdir -p ./user_projects/$(PROJ)/config
cp main.cpp ./user_projects/$(PROJ)
cp Makefile ./user_projects/$(PROJ)
sed -i "0,/PROJ := /{s/PROJ := .*/PROJ := $(PROJ)/}" ./user_projects/$(PROJ)/Makefile
cp VERSION.txt ./user_projects/$(PROJ)
cp -r ./config/* ./user_projects/$(PROJ)/config
cp -r ./custom_modules/* ./user_projects/$(PROJ)/custom_modules
Expand Down

0 comments on commit ef5e722

Please sign in to comment.