summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-10-13 20:36:10 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-10-13 20:36:10 +0000
commit8f29827904dc65b505d4fbf82c3deeaa9d70f5bc (patch)
treedb71299089295bb927c38f27f2d54e4b94e3ffcf
parent396557969abba18b2fe28eba49f8ebc13695ec77 (diff)
parent9f25546d6e324b59753a39e05e7bc7faea69c976 (diff)
downloadobstack-8f29827904dc65b505d4fbf82c3deeaa9d70f5bc.tar.gz
Add go/android3p files for external/obstack am: 3f150c198b am: 2437e11c64 am: 839fae7fee am: 0d9c81c9d7 am: 9f25546d6e
Original change: https://android-review.googlesource.com/c/platform/external/obstack/+/1843834 Change-Id: I8c8176c1a432aafa469444c82270cb001a50363b
l---------LICENSE1
-rw-r--r--METADATA19
-rw-r--r--MODULE_LICENSE_LGPL0
-rw-r--r--OWNERS2
-rwxr-xr-xpost_update.sh21
5 files changed, 43 insertions, 0 deletions
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