File: configure

package info (click to toggle)
transcend 0.3.dfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 5,796 kB
  • ctags: 3,074
  • sloc: cpp: 26,886; ansic: 693; sh: 210; makefile: 99; perl: 67
file content (116 lines) | stat: -rwxr-xr-x 1,961 bytes parent folder | download | duplicates (6)
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
#!/bin/sh

#
# Modification History
#
# 2004-June-10    Jason Rohrer
# Copied/modified from Monolith project.
#
# 2004-August-25    Jason Rohrer
# Added support for editors directory.
#


while [ -z "$platformSelection" ]
do
    echo "select platform:"

    echo "  1 --  GNU/Linux X86"
    echo "  2 --  GNU/Linux PPC"
    echo "  3 --  FreeBSD X86"
    echo "  4 --  MacOSX"
    echo "  5 --  Solaris"
    echo "  6 --  Win32 using MinGW"
    echo "  q --  quit"

    echo ""
    echo -n "> "

    read platformSelection

	
	if [ "$platformSelection" = "q" ]
    then
        exit
    fi


    # use ASCII comparison.

	if [[ "$platformSelection" > "6" ]]
    then
        platformSelection=""
    fi

    if [[ "$platformSelection" < "1" ]]
    then
        platformSelection=""
    fi

done




platformName="Generic"
platformMakefile="generic"



case "$platformSelection" in


    "1" )
        platformName="GNU/Linux X86"
        platformMakefile="Makefile.GnuLinuxX86"
    ;;


    "2" )
        platformName="GNU/Linux PPC"
        platformMakefile="Makefile.GnuLinuxPPC"
    ;;


    "3" )
        platformName="FreeBSD X86"
        platformMakefile="Makefile.FreeBSDX86"
    ;;


    "4" )
        platformName="MacOSX"
        platformMakefile="Makefile.MacOSX"
    ;;


    "5" )
        platformName="Solaris"
        platformMakefile="Makefile.Solaris"
    ;;


    "6" )
        platformName="Win32 MinGW"
        platformMakefile="Makefile.MinGW"
    ;;


esac



rm -f Makefile.temp
echo "# Auto-generated by Transcend/configure for the $platformName platform.  Do not edit manually." > Makefile.temp

rm -f game/Makefile
cat Makefile.temp $platformMakefile Makefile.common Makefile.minorGems game/Makefile.all Makefile.minorGems_targets > game/Makefile

rm -f editors/Makefile
cat Makefile.temp $platformMakefile Makefile.common Makefile.minorGems editors/Makefile.all Makefile.minorGems_targets > editors/Makefile

rm Makefile.temp



exit