From 3f150c198b93fa5e49d48bb535ac995f786edd0a Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 8 Sep 2021 14:59:46 -0700 Subject: Add go/android3p files for external/obstack Bug: 199322054 Test: none Change-Id: Ifd61ee423ed50ebdc9c380b5a64b7e0827ac419c --- LICENSE | 1 + METADATA | 19 +++++++++++++++++++ MODULE_LICENSE_LGPL | 0 OWNERS | 2 ++ post_update.sh | 21 +++++++++++++++++++++ 5 files changed, 43 insertions(+) create mode 120000 LICENSE create mode 100644 METADATA create mode 100644 MODULE_LICENSE_LGPL create mode 100644 OWNERS create mode 100755 post_update.sh 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 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 -- cgit v1.2.3