Patch: create correct number of models

More
13 Mar 2013 18:47 - 13 Mar 2013 18:49 #7703 by elwood153
Patch: create correct number of models was created by elwood153
Playing with the devo build system I found that the NUM_MODELS variable in the makefile has no effect. This patch creates the requested number of models:
--- PhracturedBlue-deviation-18eee5893e61/src/Makefile.org	2013-03-13 19:39:53.366431448 +0100
+++ PhracturedBlue-deviation-18eee5893e61/src/Makefile	2013-03-13 19:41:11.830527617 +0100
@@ -244,7 +244,8 @@
 	echo 'name=Model1' > filesystem/$$tx/models/model1.ini; \
 	cat model_template.ini >> filesystem/$$tx/models/model1.ini; \
 	cp model_template.ini filesystem/$$tx/models/default.ini; \
-	number=2 ; while [ $$number -le 30 ] ; do \
+	export max_number=$(NUM_MODELS); \
+	number=2 ; while [ $$number -le $$max_number ] ; do \
 		cp model_template.ini filesystem/$$tx/models/model$$number.ini; \
 		number=`expr $$number + 1`; \
 		done
Last edit: 13 Mar 2013 18:49 by elwood153.

Please Log in or Create an account to join the conversation.

More
13 Mar 2013 19:16 #7705 by RandMental
Replied by RandMental on topic Patch: create correct number of models
PB requested we log all such issues also on bitbucket, it is easier for him as it gets a formal ticket number. He then works through that list as he gets time.

Please Log in or Create an account to join the conversation.

Time to create page: 0.028 seconds
Powered by Kunena Forum