Please sign in to comment.
Fix compilation of mime_types.erl when working directory is not 'yaws'
When mime_types.erl is generated, we must check if it is done during a Yaws compilation or a Yaws startup. In the first case, we must use a relative path for includes. Else include_lib must be used. This issue was reported by Andrei Zavada and avoid a compile error when the working directory is not 'yaws'. The mechanisms to generate and compile this file have also changed. Then, to centralize calls to yaws_generated:is_local_install/0, following functions was added in yaws.erl: get_app_dir/0, get_src_dir/0, get_ebin_dir/0, get_priv_dir/0, get_inc_dir/0
- Loading branch information...
Showing with 99 additions and 103 deletions.