summaryrefslogtreecommitdiffstats
path: root/crawl-ref/domake.sh
blob: f129f6a14e266f8c8c24067ab49b4abe79a6ecf9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
#jmf: automate making normal & wizard binaries, until they merge
#jmf: N.B.: requires symlink directories; run ./dolinks.sh to make

MAKE=make
if [ "$(uname -s)" == "FreeBSD" ]; then
	MAKE=gmake
fi

pushd NORMAL/source ; $MAKE ; popd
pushd WIZARD/source ; $MAKE wizard ; popd

if [ -f NORMAL/source/crawl ]; then
	ln -sf NORMAL/source/crawl ncrawl
fi

if [ -f WIZARD/source/crawl ]; then
	ln -sf WIZARD/source/crawl wcrawl
fi