summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2021-10-13 19:30:45 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-10-13 19:30:45 +0000
commit2437e11c64fa8d368f9287f44ae05ff7c41ad30c (patch)
treedb71299089295bb927c38f27f2d54e4b94e3ffcf
parent41994c0bccfef1fa5bdcb33d6af347fd8dd31b8f (diff)
parent3f150c198b93fa5e49d48bb535ac995f786edd0a (diff)
downloadobstack-2437e11c64fa8d368f9287f44ae05ff7c41ad30c.tar.gz
Add go/android3p files for external/obstack am: 3f150c198b
Original change: https://android-review.googlesource.com/c/platform/external/obstack/+/1843834 Change-Id: I1c9aa5b1d0c2aa649dbc3add8948b43f8be2dfb4
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