diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-11 22:07:25 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-11 22:07:38 -0800 |
commit | 934e30171765eb1e46d0a2d519ab055f14f506ed (patch) | |
tree | 4a130b0e3b47c29be1e045c7f6b796d06554bf27 /crawl-ref/dolinks.sh | |
parent | fe91130c20fede0990edda539aed27c044622553 (diff) | |
download | crawl-ref-934e30171765eb1e46d0a2d519ab055f14f506ed.tar.gz crawl-ref-934e30171765eb1e46d0a2d519ab055f14f506ed.zip |
dolinsks.sh: only link needed files
Diffstat (limited to 'crawl-ref/dolinks.sh')
-rwxr-xr-x | crawl-ref/dolinks.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crawl-ref/dolinks.sh b/crawl-ref/dolinks.sh index 072555e7bc..ed4ecac43d 100755 --- a/crawl-ref/dolinks.sh +++ b/crawl-ref/dolinks.sh @@ -1,10 +1,18 @@ #!/usr/bin/env bash +dolinks() { + mkdir -p source + cd source + ln -sf ../../source/*.{cc,h} . + ln -sf ../../source/makefile* . + ln -sf ../../source/{util,contrib,rltiles,prebuilt,dat} . +} + mkdir -p NORMAL mkdir -p WIZARD -pushd NORMAL ; mkdir -p source ; cd source ; ln -sf ../../source/* . ; popd -pushd WIZARD ; mkdir -p source ; cd source ; ln -sf ../../source/* . ; popd +pushd NORMAL ; dolinks ; popd +pushd WIZARD ; dolinks ; popd if [ -d dat ]; then true |