Created
July 25, 2014 13:39
-
-
Save MartinNowak/c5f714fb16be96db13e5 to your computer and use it in GitHub Desktop.
script to build dmd from github source archive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
VER=${1} # first argument is some git tag or branch | |
mkdir dmd-${VER#v} && cd $_ | |
for proj in dmd druntime phobos; do | |
curl -sSL https://github.com/D-Programming-Language/${proj}/archive/${VER}.tar.gz | \ | |
tar --transform="s|^${proj}-${VER#v}|${proj}|" -zxf - | |
done | |
for fold in dmd/src druntime phobos; do | |
(cd $fold; make -f posix.mak -j4; make -f posix.mak install) | |
done | |
echo 'Build done:' dmd-${VER#v} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment