-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfix.sh
More file actions
executable file
·39 lines (31 loc) · 810 Bytes
/
fix.sh
File metadata and controls
executable file
·39 lines (31 loc) · 810 Bytes
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
#!/bin/sh
#
# Sets makefile source code for the different platforms
# Based on fix.sh of Allegro.
# Modified By Kronoman - In loving memory of my father.
# Modified By Guillermo "Ñuño" Martínez.
proc_help()
{
echo "Usage: fix platform"
echo
echo "Where platform is one of: dos, win or linux. "
echo
echo
}
proc_fix()
{
echo "Configuring for $1..."
if [ "$2" != "none" ]; then
echo "# Warning! This file will be overwritten by configuration routines!" > target.os
echo "TARGET=$2" >> target.os
fi
}
# prepare for the given platform.
case "$1" in
"dos" ) proc_fix "DOS (FPC)" "DOS";;
"win" ) proc_fix "Windows (FPC)" "WIN";;
"linux" ) proc_fix "Linux (FPC)" "LINUX";;
"help" ) proc_help;;
* ) proc_help;;
esac
echo "Done!"