Skip to content

Commit

Permalink
Merge pull request #9 from nalundgaard/support-R15B03-1
Browse files Browse the repository at this point in the history
Support R15B03-1
  • Loading branch information
Mark Allen committed Dec 6, 2014
2 parents db09cd7 + d8eed3f commit 5bdda03
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion erlbrew
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ usage() {
echo "Usage: $0 {download|build|install|use|list} [release-spec]"
}

# Given a release, map it to the appropriate directory when unpacked
_map_dir() {
RELEASE_SUFFIX=$1
case $1 in
R15B03-1)
# R15B03-1 unpacks to just R15B03
RELEASE_SUFFIX="R15B03"
esac
echo "otp_src_$RELEASE_SUFFIX"
}

if (( $# > 2 )); then
usage
exit 1
Expand All @@ -37,6 +48,7 @@ STATE="$WORK/.erlbrew_current"
BUILD="$WORK/.build"
INSTALL="$WORK/$RELEASE"
FILENAME="otp_src_$RELEASE"
DIRNAME="$(_map_dir $RELEASE)"
DOWNLOAD_FILE="$FILENAME.tar.gz"
TARBALL_PATH="$BUILD/tarballs"
CHECKSUM_PATH="$BUILD/MD5"
Expand Down Expand Up @@ -101,7 +113,7 @@ build() {
cd "$TMP_PATH"
echo "Unpacking Erlang $RELEASE"
$UNTAR_CMD $UNTAR_FLAGS $DOWNLOAD_FILE 1>>"$TMP_PATH/erlbrew.log" 2>&1
cd "$FILENAME"
cd "$DIRNAME"

echo "Configuring Erlang $RELEASE for $OSTYPE"
CFLAGS=""
Expand Down

0 comments on commit 5bdda03

Please sign in to comment.