summaryrefslogtreecommitdiffstats
path: root/crawl-ref/dolinks.sh
blob: c6c6c6e862ed712468d3ee70f76516080312324f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

dolinks() {
    mkdir -p source
    cd source
    ln -sf ../../source/*.{cc,h,txt} .
    ln -sf ../../source/makefile* .
    ln -sf ../../source/{util,contrib,rltiles,prebuilt,dat} .
}

mkdir -p NORMAL
mkdir -p WIZARD

pushd NORMAL ; dolinks ; popd
pushd WIZARD ; dolinks ; popd

if [ -d dat ]; then
	true
else
	ln -sf source/dat dat
fi