diff options
author | Colin Cross <ccross@android.com> | 2021-10-13 20:06:33 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-10-13 20:06:33 +0000 |
commit | 0d9c81c9d772833fd61b8687c39a385767166856 (patch) | |
tree | db71299089295bb927c38f27f2d54e4b94e3ffcf | |
parent | 8fc20ccd2590a43155877ee105cb664a5a2c4228 (diff) | |
parent | 839fae7fee14f2aa3cf4350b289ab3b91b2d38c9 (diff) | |
download | obstack-0d9c81c9d772833fd61b8687c39a385767166856.tar.gz |
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
l--------- | LICENSE | 1 | ||||
-rw-r--r-- | METADATA | 19 | ||||
-rw-r--r-- | MODULE_LICENSE_LGPL | 0 | ||||
-rw-r--r-- | OWNERS | 2 | ||||
-rwxr-xr-x | post_update.sh | 21 |
5 files changed, 43 insertions, 0 deletions
@@ -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 @@ -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 |