Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Fixed version of #451 #520

Merged
merged 4 commits into from Jul 2, 2015
Merged

Fixed version of #451 #520

merged 4 commits into from Jul 2, 2015

Conversation

ghost
Copy link

@ghost ghost commented Jul 2, 2015

This is a fixed version of #451:

  • fix commit messages
  • fix whitespace issues
  • move internal helper functions to correct location
  • unexport internal cross arch helper functions
  • fix 18.0 time API compatibility
  • fix Windows temp dir detection
  • use correct helper function name
  • use sh/2 instead of os:cmd/1
  • match file:delete/1 result
  • use logging macros
  • fix typo
  • fix Dialyzer warnings
  • add Tony Rogvall to THANKS
  • add missing termination clause
  • os type must be win32, not windows
  • match file:write_file/2 result
  • document cross-arch variables
  • simplify env_wordsize/1 (Thanks Fred Hebert)

New vars for cross arch support:

 * REBAR_ARCH_TARGET

 * REBAR_TARGET_WORDSIZE

 * REBAR_ARCH_TARGET_VSN
New variable names:

 * REBAR_TARGET_ARCH

 * REBAR_TARGET_ARCH_VSN

 * REBAR_TARGET_ARCH_WORDSIZE
@ghost ghost mentioned this pull request Jul 2, 2015
16 -> "16";
32 -> "32";
64 -> "64";
_ ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why isn't this just:

case Wordsize of
    "16" -> Wordsize;
    "32" -> Wordsize;
    "64" -> Wordsize;
    _ -> ?WARN("REBAR_TARGET_ARCH_WORDSIZE bad value: ~p\n", [Wordsize]), "32"
end

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, I don't know why @tonyrog checks if it's an integer. Thanks, simplified.

 * fix commit messages
 * fix whitespace issues
 * move internal helper functions to correct location
 * unexport internal cross arch helper functions
 * fix 18.0 time API compatibility
 * fix Windows temp dir detection
 * use correct helper function name
 * use sh/2 instead of os:cmd/1
 * match file:delete/1 result
 * use logging macros
 * fix typo
 * fix Dialyzer warnings
 * add Tony Rogvall to THANKS
 * add missing termination clause
 * os type must be win32, not windows
 * match file:write_file/2 result
 * document cross-arch variables
 * simplify env_wordsize/1 (Thanks Fred Hebert)
ferd added a commit that referenced this pull request Jul 2, 2015
@ferd ferd merged commit 75b7dda into rebar:master Jul 2, 2015
@ghost ghost deleted the tonyrog-cross-arch branch July 2, 2015 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants