Add go/android3p files for external/obstack am: 3f150c198b am: 2437e11c64 am: 839fae7fee

Original change: https://android-review.googlesource.com/c/platform/external/obstack/+/1843834

Change-Id: If52e62345b0a7df40dab14df8ab5c53b0113c57f
diff --git a/LICENSE b/LICENSE
new file mode 120000
index 0000000..cc21e6d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1 @@
+libiberty/COPYING.LIB
\ No newline at end of file
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..3d6465d
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,19 @@
+name: "obstack"
+description: "obstack.c and obstack.h from the GCC libiberty library."
+third_party {
+  url {
+    type: HOMEPAGE
+    value: "https://gcc.gnu.org/onlinedocs/libiberty/Obstacks.html"
+  }
+  url {
+    type: ARCHIVE
+    value: "https://github.com/gcc-mirror/gcc/archive/releases/gcc-11.2.0.tar.gz"
+  }
+  version: "releases/gcc-11.2.0"
+  license_type: RESTRICTED
+  last_upgrade_date {
+    year: 2021
+    month: 10
+    day: 1
+  }
+}
diff --git a/MODULE_LICENSE_LGPL b/MODULE_LICENSE_LGPL
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_LGPL
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..f08b334
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1,2 @@
+ccross@android.com
+enh@google.com
diff --git a/post_update.sh b/post_update.sh
new file mode 100755
index 0000000..6f15e8f
--- /dev/null
+++ b/post_update.sh
@@ -0,0 +1,21 @@
+#!/bin/bash -x
+
+# $1 Path to the new version.
+# $2 Path to the old version.
+
+# We only want a few files from the archive, so delete any files that weren't
+# in the old version.  Start with deleting whole directories first.
+find $1 -maxdepth 1 -type d -printf "%P\n" | while read f; do
+  if [ ! -d "$2/$f" ]; then
+      rm -rf $1/$f
+  fi
+done
+
+find $1 -printf "%P\n" | while read f; do
+  if [ ! -e "$2/$f" ]; then
+      rm -rf $1/$f
+  fi
+done
+
+# Copy over the android directory
+cp -r $2/android $1/android