summaryrefslogtreecommitdiff
path: root/2004/netfilter-failover-ols2004/OLS2004-proceedings/bin/CreateIndiv.pl
blob: 5905008082aab24ce899023abf93b06372438da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
#!/usr/bin/perl -w

$preface = q{\newcount\olsmaster
\olsmaster=1

\documentclass[twocolumn,twoside,12pt]{combine}
\usepackage{ols}
\ifpdf
\usepackage[pdftex]{epsfig}
\else
\usepackage{epsfig}
\fi
\usepackage{rotating}

% Other packages that authors have used...
\usepackage[modulo]{lineno}
\usepackage{alltt}

\usepackage[T1]{fontenc}
\ifpdf
\usepackage[pdftex]{graphicx}
\else
\usepackage{graphicx}
\fi
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{csty}

\usepackage{enumerate}
\usepackage{geometry}
%%%%% html breaks 'combine' rather badly
% \usepackage{html} 
%%% hyperref is nearly as bad
% \usepackage{hyperref}
\usepackage{isolatin1}
\usepackage{latexsym}
\usepackage{longtable}
\usepackage{multicol}
\usepackage{cprog}
\usepackage{float}
\usepackage{supertabular}
\usepackage{textcomp}
\usepackage{times}
\usepackage{url}
\usepackage{usenix}
\usepackage{wrapfig}
\usepackage{fancyvrb}

\title{{\em\normalsize Reprinted from the}\\\\
Proceedings of the\\\\
Linux Symposium}
\author{\vspace{4in}}
\date{July 21th--24th, 2004\\\\
 Ottawa, Ontario\\\\
 Canada}

% make room for "OLS2004...pagenumber" header
\setlength{\topmargin}{-0.5in}
\setlength{\headheight}{0.2in}
\setlength{\headsep}{0.3in}

\thispagestyle{empty}
\pagestyle{empty}
%%%%%%%%%%%%%%%%% DOC STARTS HERE %%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagestyle{empty}
\thispagestyle{empty}


%%%%%%%%%%%%%% TITLE PAGE %%%%%%%%%%%%%%%%%%%
\twocolumn[\pagestyle{empty}\thispagestyle{empty} \maketitle ]


%%%%%%%%%%%%%%%%%%%%% CREDITS PAGE %%%%%%%%%%%%%%%%%%
\thispagestyle{empty}
\twocolumn
\thispagestyle{empty}
%%% \thispagestyle{empty}
\begin{minipage}[t][0.95\textheight]{\textwidth}
\thispagestyle{empty}

\vspace{2cm}

\textbf{{\Large Conference Organizers}}

\vspace{5mm}
\begin{large}
\hspace*{0.5in}Andrew J.\ Hutton, \textit{Steamballoon, Inc.}\\\\
\hspace*{0.5in}Stephanie Donovan, \textit{Linux Symposium}\\\\
\hspace*{0.5in}C.\ Craig Ross, \textit{Linux Symposium}
\end{large}

\vspace{1cm}
\textbf{{\Large Review Committee}}

\vspace{5mm}
\begin{large}
\hspace*{0.5in}Jes Sorensen, \textit{Wild Open Source, Inc.}\\\\
\hspace*{0.5in}Matt Domsch, \textit{Dell}\\\\
\hspace*{0.5in}Gerrit Huizenga, \textit{IBM}\\\\
\hspace*{0.5in}Matthew Wilcox, \textit{Hewlett-Packard}\\\\
\hspace*{0.5in}Dirk Hohndel, \textit{Intel}\\\\
\hspace*{0.5in}Val Henson, \textit{Sun Microsystems}\\\\
\hspace*{0.5in}Jamal Hadi Salimi, \textit{Znyx}\\\\
\hspace*{0.5in}Andrew Hutton, \textit{Steamballoon, Inc.}
\end{large}

\vspace{1cm}

\textbf{{\Large Proceedings Formatting Team}}

\vspace{5mm}
\begin{large}
\hspace*{0.5in}John W.\ Lockhart, \textit{Red Hat, Inc.}\\\\
\end{large}


% \vspace*{\fill}

\begin{center}
\vspace{2.5in}
Authors retain copyright to all submitted papers, but have granted 
unlimited redistribution rights to all as a condition of submission.
\end{center} 
\end{minipage}

%%%%%%%% PAGE HEADINGS DEFINITIONS %%%%%%%%%%%%%%%%%%%%
\pagestyle{myheadings}
\markboth{~~{\textbullet}~~Linux Symposium\ ~\hrulefill\ }{\ \hrulefill\ Linux Symposium 2004~~{\textbullet}~~}

%%%%%%%%%%%%%%% PAPERS BEGIN HERE %%%%%%%%%%%%%%%%%%%%%%%%%%
};

###### THIS IS THE SORT OF STUFF THAT MAKES UP THE MIDDLE...
### \setcounter{page}{176}
### \begin{papers}
### \coltocauthor{Kai Germaschewski} % { University of Iowa}
### \coltoctitle{Kernel configuration and building in Linux 2.5}
### \label{art16}
### \import{kbuild}

$ender = q{\end{papers}
\clearpage
\end{document}
};

# print "hey, the quotes worked\n";
@authors = ( );
@titles = ( );
@imports = ( );
@pagenos = ( );

open(AUTHORS, "grep coltocauthor ./MasterOLS.tex|") or die "nogrep";
while (defined($ln = <AUTHORS>)) {
  chomp $ln;
  push(@authors, $ln);
}
close(AUTHORS);

open(TITLES, "grep coltoctitle ./MasterOLS.tex|") or die "nogrep2";
while (defined($ln = <TITLES>)) {
  chomp $ln;
  push @titles, $ln;
}
close(TITLES);

open(IMPORTS, "grep import ./MasterOLS.tex|") or die "nogrep3";
while (defined($ln = <IMPORTS>)) {
  chomp $ln;
  push @imports, $ln;
}
close(IMPORTS);

open(PAGENO, "grep coltocauthor ./MasterOLS-2side.toc|") or die "nogrep4";
while (defined($ln = <PAGENO>)) {
  chomp $ln;
  push @pagenos, $ln;
}
close(PAGENO);

$i = 0;
foreach my $author (@authors) {
  if (!defined($author) or !$author) {
     print STDERR "Hey, undef author!\n";
     exit 1;
  }
  $title  = $titles[$i];
  $import = $imports[$i];
  $pageno = $pagenos[$i];
  if ($author =~ /coltocauthor{(.*)}/) {
     $a = $1;
     if ($a =~ /(\S+ )*(\S+)/) {
        $lastName = $2;
        $fileName = "Reprint-${lastName}-OLS2004.tex";
        $fileName =~ s/\'//;
        ### \setcounter{page}{176}
        ### \begin{papers}
        if ($pageno =~ /{.*}{(\d+)}$/) {
            open(OUT, ">$fileName") or die "cannot open $fileName";
            $p = $1 - 1;
            # print "$fileName\n";
            print OUT "$preface\n";
            print OUT '\setcounter{page}{' . $p . '}', "\n";
            print OUT '\begin{papers}[\clearpage]', "\n";
            print OUT "$author\n";
            print OUT "$title\n";
            print OUT "$import\n\n";
            print OUT "$ender\n";
            close(OUT);
            # print "    pageno: $p\n\n";
        } else {
          print STDERR "Hey, no pageno: $pageno\n";
        }
     }
     # print STDERR "Got author: $a\n  lastname: $lastName\n";
  } else {
     print STDERR "Hey, no author here: $author\n";
  }
  $i++;
}


personal git repositories of Harald Welte. Your mileage may vary