Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Commit

Permalink
make top works again. Also add file_type for readme and .emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
pad committed Oct 21, 2010
1 parent f43b9e8 commit 4eba308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -178,6 +178,7 @@ LIBS= commons/commons.cma \
lang_php/analyze/database/lib.cma \
lang_php/analyze/finder/lib.cma \
lang_php/analyze/static_analysis/lib.cma \
lang_php/analyze/dynamic_analysis/lib.cma \
lang_php/analyze/qa_test/lib.cma \
lang_php/analyze/lib.cma \
lang_sql/parsing/lib.cma \
Expand Down
4 changes: 2 additions & 2 deletions commons/file_type.ml
Expand Up @@ -227,12 +227,12 @@ let file_type_of_file2 file =
| _ when Common.is_executable file -> Binary e

| _ when b = "Makefile" -> PL Makefile
| _ when b = "README" -> Text "txt"

(* facebook *)
| _ when b = "TAGS" -> Binary e

| _ when b = "TARGETS" -> PL Makefile
| _ when b = ".depend" -> Obj "depend"
| _ when b = ".emacs" -> PL (Lisp (Elisp))

| _ when Common.filesize file > 300_000 ->
Obj e
Expand Down

0 comments on commit 4eba308

Please sign in to comment.