anchor.diff:  %% @doc create an otp release
   -spec do_task(sin_config:matcher(), sin_state:state()) -> sin_state:state().
   do_task(Config, State0) ->
  +    BuildDir = sin_state:get_value(build_dir, State0),
       ReleaseDir = sin_state:get_value(release_dir, State0),
       ReleaseName = sin_state:get_value(release, State0),
       Version = sin_state:get_value(release_vsn, State0),
       ReleaseInfo = generate_rel_file(Config, State0, ReleaseDir,
                                       ReleaseName, Version),
       State1 = sin_state:store(rel, ReleaseInfo, State0),
  +    create_bin_file(State1, BuildDir,
  +                    ReleaseName, Version, get_erts_info()),
       copy_or_generate_sys_config_file(Config, ReleaseDir, Version),
  -    optionally_include_erts(State1, Config, filename:join([ReleaseDir,".."])),
  +    copy_apps(Config, State1, BuildDir),
  +    include_erts(Config, State1, BuildDir),
       make_boot_script(State1, Config, ReleaseInfo),
       State1.
   
  
positive.code:             sin_state:get_value(project_apps, State)].
  
  %% @doc Optionally add erts directory to release, if defined.
  -spec optionally_include_erts(sin_state:state(), sin_config:config(), string()) -> ok.
  optionally_include_erts(State, Config, ReleaseRootDir) ->
      case Config:match(include_erts, undefined) of
          undefined ->
              ok;
          true ->
              ErtsDir = sin_utils:get_erts_dir(),
              sin_utils:copy_dir(Config, State, ReleaseRootDir, ErtsDir, [keep_parent])
      end.
  
negative.code:         replacing the generated file) by placing a file in
          releases/<release-name>.rel<break><break>
  
          You may also add additional options to the sys_tools:make_script
          call. The one you probably want to add most is the local option, but you
          may add any valid option. You do this by adding the following call to
  