ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/historic/playbook/spellpath-extract
Revision: 1.1
Committed: Thu Sep 7 21:43:00 2006 UTC (17 years, 9 months ago) by pippijn
Branch: MAIN
CVS Tags: rel-2_82, rel-2_81, rel-2_80, rel-3_1, rel-3_0, rel-2_6, rel-2_7, rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-2_1, rel-2_72, rel-2_73, rel-2_71, rel-2_76, rel-2_77, rel-2_74, rel-2_75, rel-2_54, rel-2_55, rel-2_56, rel-2_79, rel-2_52, rel-2_53, rel-2_32, rel-2_90, rel-2_92, rel-2_93, rel-2_78, rel-2_61, rel-2_43, rel-2_42, rel-2_41, HEAD
Log Message:
Moved documents to doc/historic

File Contents

# Content
1
2 BEGIN {
3 # Read the array data from living.c
4 while ((getline buff < living_c) == 1) {
5 if (buff ~ /spellpathnames\[/) {
6 get_values(buff);
7 fth = (tind-1)/4;
8 for(i=1;i<tind;i+=5)
9 printf("&%s &%s &%s &%s &%s & \\\\\n",array[i],
10 array[i+1],array[i+2],array[i+3],array[i+4]);
11 break;
12 }
13 }
14 close(living_c);
15 }
16
17 function get_values (buff) {
18 tind = 1;
19 while (1) {
20 getline buff < living_c;
21 if (buff ~ /};/)
22 break;
23 gsub("[ \t]*\"", "", buff);
24 nr = split(buff, val, ",");
25 for (i = 1; i<=nr ; i++)
26 if(val[i]!="") array[tind++]=val[i];
27 }
28 }