forked from ckaestne/TypeChef
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgnuplotTestCase.sh
More file actions
executable file
·112 lines (107 loc) · 2.26 KB
/
Copy pathgnuplotTestCase.sh
File metadata and controls
executable file
·112 lines (107 loc) · 2.26 KB
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
#!/bin/bash
# gnuplot configured with
srcPath=./casestudies/gnuplot-4.2.5/src
prjPath=./casestudies/gnuplot-4.2.5
export partialPreprocFlags='-p true
-U CGI
-U COLUMN_HELP
-U DJSVGA
-U DOS32
-U EXTENDED_COLOR_SPECS
-U EXTERN_ERRNO
-U GIF_ANIMATION
-U GNUGRAPH
-U GRX21
-U HAVE_3DKIT_H
-U HAVE_DOPRNT
-U HAVE_EDITLINE_READLINE_H
-U HAVE_FORK
-U HAVE_GD_GIF
-U HAVE_GD_H
-U HAVE_GD_JPEG
-U HAVE_GD_PNG
-U HAVE_GD_TTF
-U HAVE_GGI_WMH_H
-U HAVE_GGI_XMI_H
-U HAVE_GTK
-U HAVE_GTK28
-U HAVE_KPSEXPAND
-U HAVE_LIBAQUATERM
-U HAVE_LIBC_H
-U HAVE_LIBEDITLINE
-U HAVE_LIBGD
-U HAVE_LIBPDF
-U HAVE_LIBPDF_OPEN_FILE
-U HAVE_LIBREADLINE
-U HAVE_NODASH_LIBPDF
-U HAVE_OLD_LIBPDF
-U HAVE_PDFLIB_H
-U HAVE_READLINE_HISTORY_H
-U HAVE_READLINE_READLINE_H
-U HAVE_READLINE_TILDE_H
-U HAVE_STRICMP
-U HAVE_STRNICMP
-U HAVE_SYS_BSDTYPES_H
-U HAVE_SYS_SYSTEMINFO_H
-U HAVE_VFORK
-U HAVE_VFORK_H
-U HAVE_VGAGL_H
-U HAVE_WORKING_FORK
-U HAVE_WORKING_VFORK
-U HIDDEN3D_GRIDBOX
-U IRIS
-U LINUXVGA
-U MGR
-U MSDOS
-U NOCWDRC
-U RGIP
-U STAT_MACROS_BROKEN
-U SUN
-U THIN_PLATE_SPLINES_GRID
-U THREEDKIT
-U UNIXPLOT
-U USE_GGI_DRIVER
-U VGAGL
-U WXWIDGETS
-U X_DISPLAY_MISSING
-U const
-U gdImageStringFT
-U inline
-U pid_t
-U size_t
-U vfork
-U ATARI
-U MTOS
-U MSDOS
-U DOS386
--openFeat '$prjPath'/gnuplotfeatures.txt
'
flags='
-I '$prjPath' -I '$srcPath'
--include ./host/platform.h
-DPACKAGE="gnuplot"
-DPACKAGE_BUGREPORT=""
-DPACKAGE_NAME="gnuplot"
-DPACKAGE_STRING="gnuplot 4.2.5"
-DPACKAGE_TARNAME="gnuplot"
-DPACKAGE_VERSION="4.2.5"
-DRETSIGTYPE=void
-DSELECT_TYPE_ARG1=int
-DVERSION="4.2.5"
-I /usr/local/include
-I /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include
-I /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include-fixed
-I /usr/include/x86_64-linux-gnu
-I /usr/include
-I /usr/include/cairo
'
# -D'\''SELECT_TYPE_ARG234=(fd_set'\ '*)'\''
# -D'\''SELECT_TYPE_ARG5=(struct timeval'\ '*)'\''
##################################################################
# Actually invoke the preprocessor and analyze result.
##################################################################
for i in `find "$srcPath" -type f -name "*.c"`;
do
echo './jcpp.sh' $i $flags $partialPreprocFlags
./jcpp.sh $i $flags
done