ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/playbook-html/sorter
Revision: 1.2
Committed: Thu Sep 7 21:43:23 2006 UTC (17 years, 9 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Moved documents to doc/historic

File Contents

# User Rev Content
1 root 1.1 BEGIN {
2     a=11;
3     b=12;
4     halv=int(lengde/2);
5     hopp=lengde-(2*halv);
6     lim=halv+hopp;
7     }
8     {
9     str = toupper(substr($0, 1, 1)) substr($0, 2);
10     if (NR>lim) { num=b; b+=2;}
11     else { num=a; a+=2;}
12    
13     if (NR>halv) hale="\\\\\n";
14     else hale="& \n";
15    
16     if (hopp && NR==lim)
17     {
18     hale="";
19     for (i=0; i<NF ; i++) hale=hale "& ";
20     hale=hale "\\\\\n";
21     }
22    
23     printf("%d &%s %s", num, str, hale);
24     }