anchor.diff:      erl_tar:add(Tar, filename:join(TmpDir,"log"), "log", []),
       erl_tar:close(Tar),
       %% file:set_cwd(Cwd),
  -    io:fwrite("Removing directory ~tp ...~n",[TmpDir]),
  +    io:fwrite("Removing directory ~ts ...~n",[TmpDir]),
       remove_dir_tree(TmpDir),
       ok.
   
   
   install(RelFileName, RootDir) ->
       TarFile = RelFileName ++ ".tar.gz", 
  -    io:fwrite("Extracting ~tp ...~n", [TarFile]),
  +    io:fwrite("Extracting ~ts ...~n", [TarFile]),
       extract_tar(TarFile, RootDir),
       StartErlDataFile = filename:join([RootDir, "releases", "start_erl.data"]),
       {ok, StartErlData} = read_txt_file(StartErlDataFile),
  
positive.code:     Dir = filename:dirname(RelFileName),
      PlainRelFileName = filename:join(Dir,"plain"),
      PlainRelFile = PlainRelFileName ++ ".rel",
      io:fwrite("Reading file: ~tp ...~n", [RelFile]),
      {ok, [RelSpec]} = file:consult(RelFile),
      io:fwrite("Creating file: ~tp from ~tp ...~n",
                [PlainRelFile, RelFile]),
      {release,
       {RelName, RelVsn},
  
negative.code:     make_script(RelFileName,SystoolsOpts),
  
      TarFileName = RelFileName ++ ".tar.gz",
      io:fwrite("Creating tar file ~ts ...~n", [TarFileName]),
      make_tar(RelFileName,SystoolsOpts),
  
      TmpDir = filename:join(Dir,"tmp"),
      io:fwrite("Creating directory ~tp ...~n",[TmpDir]),
      file:make_dir(TmpDir), 
  
      io:fwrite("Extracting ~ts into directory ~ts ...~n", [TarFileName,TmpDir]),
      extract_tar(TarFileName, TmpDir),
  
      TmpBinDir = filename:join([TmpDir, "bin"]),
      ErtsBinDir = filename:join([TmpDir, "erts-" ++ ErtsVsn, "bin"]),
      io:fwrite("Deleting \"erl\" and \"start\" in directory ~ts ...~n",
                [ErtsBinDir]),
      file:delete(filename:join([ErtsBinDir, "erl"])),
      file:delete(filename:join([ErtsBinDir, "start"])),
  
      io:fwrite("Creating temporary directory ~ts ...~n", [TmpBinDir]),
      file:make_dir(TmpBinDir),
  
      io:fwrite("Copying file \"~ts.boot\" to ~ts ...~n",
                [PlainRelFileName, filename:join([TmpBinDir, "start.boot"])]),
      copy_file(PlainRelFileName++".boot",filename:join([TmpBinDir, "start.boot"])),
  
      io:fwrite("Copying files \"epmd\", \"run_erl\" and \"to_erl\" from \n"
                "~ts to ~ts ...~n",
                [ErtsBinDir, TmpBinDir]),
      copy_file(filename:join([ErtsBinDir, "epmd"]), 
                filename:join([TmpBinDir, "epmd"]), [preserve]),
  