diff options
author | Micael Karlberg <[email protected]> | 2011-04-08 17:51:55 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-04-08 17:51:55 +0200 |
commit | 24a9408229d14b3b0c41265f0c9f4c6d164e92ed (patch) | |
tree | 89bd26baac9532bcf9923da39018a36a4d4bca15 /lib/tools/src/make.erl | |
parent | 332b91c46d67dc31ca6080b2ba5c03636f3d584f (diff) | |
parent | 5ad09d2928fd4584ce6dc50f44825b3f6d7ef66a (diff) | |
download | otp-24a9408229d14b3b0c41265f0c9f4c6d164e92ed.tar.gz otp-24a9408229d14b3b0c41265f0c9f4c6d164e92ed.tar.bz2 otp-24a9408229d14b3b0c41265f0c9f4c6d164e92ed.zip |
Merge branch 'dev' into bmk/snmp/manager/request_override_options
Diffstat (limited to 'lib/tools/src/make.erl')
-rw-r--r-- | lib/tools/src/make.erl | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/tools/src/make.erl b/lib/tools/src/make.erl index 77c354651b..e78e2a43a4 100644 --- a/lib/tools/src/make.erl +++ b/lib/tools/src/make.erl @@ -222,12 +222,7 @@ recompilep(File, NoExec, Load, Opts) -> recompilep1(File, NoExec, Load, Opts, ObjFile) -> {ok, Erl} = file:read_file_info(lists:append(File, ".erl")), {ok, Obj} = file:read_file_info(ObjFile), - case {readable(Erl), writable(Obj)} of - {true, true} -> - recompilep1(Erl, Obj, File, NoExec, Load, Opts); - _ -> - error - end. + recompilep1(Erl, Obj, File, NoExec, Load, Opts). recompilep1(#file_info{mtime=Te}, #file_info{mtime=To}, File, NoExec, Load, Opts) when Te>To -> @@ -277,14 +272,6 @@ exists(File) -> false end. -readable(#file_info{access=read_write}) -> true; -readable(#file_info{access=read}) -> true; -readable(_) -> false. - -writable(#file_info{access=read_write}) -> true; -writable(#file_info{access=write}) -> true; -writable(_) -> false. - coerce_2_list(X) when is_atom(X) -> atom_to_list(X); coerce_2_list(X) -> |