Thanks Mikael.
So this would mean that you need to compile r12b-3 on your machine,
the one with your target architecture and run 'faxien publish
<path-to-ssl-app>. Before building you would want to apply the the
patch that follows. Will that get you by.
From: Mikael Magnusson <[EMAIL PROTECTED]>
Signed-off-by: Mikael Magnusson <[EMAIL PROTECTED]>
---
lib/ewlib/src/ewl_file.erl | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/lib/ewlib/src/ewl_file.erl b/lib/ewlib/src/ewl_file.erl
index 503cc56..b328281 100644
--- a/lib/ewlib/src/ewl_file.erl
+++ b/lib/ewlib/src/ewl_file.erl
@@ -50,6 +50,7 @@
%% Include Files
%%--------------------------------------------------------------------
-include("eunit.hrl").
+-include_lib("kernel/include/file.hrl").
%%====================================================================
%% External functions
@@ -88,8 +89,7 @@ delete_dir(Path) ->
copy_dir(From, To) ->
case filelib:is_dir(From) of
false ->
- {ok, _} = file:copy(From, To),
- ok;
+ ok = copy_file(From, To);
true ->
case filelib:is_dir(To) of
true -> ok;
@@ -101,6 +101,16 @@ copy_dir(From, To) ->
end.
%%--------------------------------------------------------------------
+%% @doc copy a file including timestamps,ownership and mode etc.
+%% @spec copy_file(From::string(), To::string()) -> ok | {error, Reason}
+%% @end
+%%--------------------------------------------------------------------
+copy_file(From, To) ->
+ {ok, _} = file:copy(From, To),
+ {ok, FileInfo} = file:read_file_info(From),
+ file:write_file_info(To, FileInfo).
+
+%%--------------------------------------------------------------------
%% @doc create a unique temorory directory.
%% @spec create_tmp_dir(Prefix::string()) -> {ok, TmpDirPath} | {error, Reason}
%% @end
--
1.5.6.3
2008/12/4 Mikael Magnusson <[EMAIL PROTECTED]>:
>
> On Thu, 2008-12-04 at 10:19 -0800, dysinger wrote:
>> Is there anyway there a working ssl app can be released in the
>> interim ? I am still stuck.
>>
>
> I have published ssl-3.9 for i686-pc-linux-gnu-glibc-2.3, but I guess
> you need it for one of the *-apple-* architectures?
>
> You could publish it yourself from OTP. I used erlang 12B-3 in Ubuntu
> Intrepid. But you need the following patch I sent to the list:
>
> [erlware PATCH] copy file timestamps,ownership and mode together
> with the data
>
> /Mikael
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlware-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/erlware-dev?hl=en
-~----------~----~----~----~------~----~------~--~---