summaryrefslogtreecommitdiffstats
path: root/crawl-ref/dolinks.sh
blob: c3d3efc743641862f6f33bcd80eb1d4f5c0bd534 (plain) (blame)
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
#!/usr/bin/env bash

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

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