Commit ded70ffa authored by Vladislav Perepelkin's avatar Vladislav Perepelkin
Browse files

removed rules.txt.example, replaced with gen_rules.py script

parent 433c83a2
......@@ -16,8 +16,15 @@ hpprp: hpprp.c config.c collide.c
collide.c: rules.txt system/gen_collide.py
python system/gen_collide.py rules.txt collide.c
rules.txt: system/rules.txt.example
if [ -f rules.txt ] ; then echo "rules.txt exists, not overriding" ; touch rules.txt ; else echo "rules.txt does not exist, create from system/rules.txt.example" ; cp system/rules.txt.example rules.txt ; fi
rules.txt:
if [ -f rules.txt ] ; \
then echo "rules.txt exists, not overriding" ; \
touch rules.txt ; \
else echo "rules.txt does not exist, create" ; \
python system/gen_rules.py \
5-5=0.3333 10-10=0.3333 16-16=0.3333\
15-15=0.3333 21-21=0.3333 26-26=0.3333 > rules.txt ; \
fi
config.c: system/config.c.example
if [ -f config.c ] ; then echo "config.c exists, not overriding" ; touch config.c ; else echo "config.c does not exist, create from system/config.c.example" ; cp system/config.c.example config.c ; fi
......
5 10 16
5 0.33333 0.33333 0.33334
10 0.33333 0.33333 0.33334
16 0.33334 0.33333 0.33333
15 21 26
15 0.33333 0.33333 0.33334
21 0.33333 0.33333 0.33334
26 0.33333 0.33333 0.33334
7 18
7 0.9 0.1
18 0.1 0.9
11 17
11 0.1 0.9
17 0.9 0.1
13 24
13 0.9 0.1
24 0.1 0.9
14 20
14 0.1 0.9
20 0.9 0.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment