-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.sh
88 lines (62 loc) · 2.05 KB
/
configure.sh
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
#! /bin/sh
# A simple interactive guide to configuring ASnip's Makefile(s) for
# use with GNAT.
unalias -a
prompt() {
msg="$*"
if [ -z "$msg" ]
then
msg="Press ENTER to continue... "
fi
echo -n $msg
read
clear
}
top_level_Makefile() {
cat<<EOF
You may have to adjust the following variables in the top level Makefile:
\$(delete) must expand to a file deletion command.
Default: del /q
\$(dirsep) must expand to your system's directory separator.
Default: \\\\
\$(exe) must expand to the file name extension of executable files, if any.
Default: .exe
FLAVOR must be set to either 'Plain' or 'Tricks'.
This shifts compilation settings from standard compliance
and debugging to less checking and more optimization.
Default: Tricks
EOF
}
testing() {
cat<<EOF
If you like, you can run ASnip's test suite, preferably on a UNIX system.
You may have to adjust the following variables in the Makefile in
subdirectory 'test':
\$(diff) must expand to a file comparison command (binary, byte-wise).
Default: diff -q
\$(grep) must expand to a string search program (V7 regular expressions).
Default: grep -q
EOF
}
echo |prompt
cat<<EOF
Welcome to ASnip's configuration!
This script serves as a guide to adjusting Makefiles for use with the
GNU Ada compilers. (For ObjectAda, see Makefile.OA.) It does not change
any files, so you can freely edit the Makefile(s) while the script is
running. The Makefile variables have been preset for use with GNAT GPL
edition on Windows. You shouldn't have to change anything if you have
this setup.
There is one exception: If your Windows box has half of UNIX installed
this can have two effects:
(a) Your make program starts using UNIX commands in place of
Windows comands of the same name. In this case use UNIX
settings as explained on the next screen.
(b) You will be able to run the test suite as is.
EOF
prompt
top_level_Makefile
prompt
testing
prompt This is the last screen...
# $ProjectVersion: R1.1 $