File: configure

package info (click to toggle)
between 6%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 3,524 kB
  • sloc: cpp: 28,110; php: 718; ansic: 638; objc: 245; sh: 236; makefile: 102; perl: 67
file content (95 lines) | stat: -rwxr-xr-x 1,579 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

#
# Modification History
#
# 2006-June-27    Jason Rohrer
# Copied/modified from Transcend project.  Dropped a platforms that were only
# nominally supported.
#


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

    echo "  1 --  GNU/Linux"
    echo "  2 --  MacOSX"
    echo "  3 --  Win32 using MinGW"
    echo "  q --  quit"

    echo ""
    echo -n "> "

    read platformSelection

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


    # use ASCII comparison.

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

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

done


# use partial makefiles from minorGems project
makefileMinorGems="../minorGems/build/Makefile.minorGems"
makefileMinorGemsTargets="../minorGems/build/Makefile.minorGems_targets"



platformName="Generic"
platformMakefile="generic"



case "$platformSelection" in


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


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


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


esac



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

rm -f gameSource/Makefile
cat Makefile.temp $platformMakefile Makefile.common $makefileMinorGems gameSource/Makefile.all $makefileMinorGemsTargets > gameSource/Makefile


rm Makefile.temp



exit