-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ntconfig.sh
28 lines (22 loc) · 861 Bytes
/
ntconfig.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
#!/bin/sh
# This script is deprecated.
NTCONFIG=$0
TOPDIR=$(dirname "${NTCONFIG}")
TOPDIR=$(cd "${TOPDIR}" && pwd)
TOPDRIVE=$(echo "${TOPDIR}" | sed -e s/:.*//)
TOPDIR=$(echo "${TOPDIR}" | sed -e s/.*://)
CURDIR=$(pwd)
CURDRIVE=$(echo "${CURDIR}" | sed -e s/:.*//)
CURDIR=$(echo "${CURDIR}" | sed -e s/.*://)
TMPDIR='c:\temp'; export TMPDIR
CONFIG_SHELL='c:/apple/library/executables/sh.exe'; export CONFIG_SHELL
EXE='.exe'; export EXE
SHELL='c:/apple/library/executables/sh.exe'; export SHELL
LD='c:/apple/developer/executables/link.exe'; export LD
CC='gcc'; export CC
if [ "${CURDRIVE}" != "${TOPDRIVE}" ]; then
echo "error: build tree must be located on the same drive letter as source (${TOPDRIVE} vs. ${CURDRIVE})."
exit 1
fi
echo "Configuring GDB using ${TOPDIR}/gdb/configure"
"${TOPDIR}"/gdb/configure --host=i386-nextpdo-winnt3.5 -v "$*"