summaryrefslogtreecommitdiff
path: root/graphics/epix/make_header
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/epix/make_header
Initial commit
Diffstat (limited to 'graphics/epix/make_header')
-rw-r--r--graphics/epix/make_header35
1 files changed, 35 insertions, 0 deletions
diff --git a/graphics/epix/make_header b/graphics/epix/make_header
new file mode 100644
index 0000000000..0041b4a92e
--- /dev/null
+++ b/graphics/epix/make_header
@@ -0,0 +1,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;