summaryrefslogtreecommitdiff
path: root/graphics/epix/make_header
blob: 0041b4a92e21c32ef87fb969c0abf91a525d2997 (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
#!/bin/bash
#
HEADER_FILE="epix.h"

HEADERS="enums.h length.h interval.h triples.h functions.h pairs.h \
     affine.h Color.h state.h frame.h domain.h camera.h screen.h picture.h \
     markers.h axis.h legend.h path.h curves.h \
     circle.h plane.h segment.h sphere.h intersections.h \
     plots.h surface.h data_mask.h data_file.h data_bins.h geometry.h"

# N.B. Spaces in 2nd line are properly adjusted
cat <<HEADER_HEADER > $HEADER_FILE
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\\
 *  $HEADER_FILE -- Automatically created on $(date)  *
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#include <iostream>
#include <vector>
#include <list>
#include <set>
#include <string>
#include <sstream>
#include <cmath>

#ifndef EPIX_H
#define EPIX_H

HEADER_HEADER

cat $HEADERS | grep -v "\#include" >> $HEADER_FILE

echo >> $HEADER_FILE
echo "#endif /* EPIX_H */" >> $HEADER_FILE

exit 0;