Merge commit 'flex-2.5.39^^'

This merges the same version of flex as we're using in prebuilts/misc
currently (but without the tiny branch that switched the version to
2.5.39 that weren't in the upstream master branch).

Also adds the METADATA, LICENSE, NOTICE, and MODULE_LICENSE_* files as
required.

Test: No Android.* files
Change-Id: If69488a1d78d5c7d4c1cc8955d55788bd5a639f2
diff --git a/LICENSE b/LICENSE
new file mode 120000
index 0000000..d24842f
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1 @@
+COPYING
\ No newline at end of file
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..c6e6456
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,17 @@
+name: "flex"
+description:
+    "The Fast Lexical Analyzer - scanner generator for lexing in C and C++"
+
+third_party {
+  url {
+    type: HOMEPAGE
+    value: "http://flex.sourceforge.net/"
+  }
+  url {
+    type: GIT
+    value: "https://github.com/westes/flex"
+  }
+  version: "flex-2.5.39"
+  last_upgrade_date { year: 2018 month: 5 day: 22 }
+  license_type: NOTICE
+}
diff --git a/MODULE_LICENSE_BSD_LIKE b/MODULE_LICENSE_BSD_LIKE
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_BSD_LIKE
diff --git a/NOTICE b/NOTICE
new file mode 120000
index 0000000..d24842f
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1 @@
+COPYING
\ No newline at end of file