From 2b78b6de1b8f3ad0e3d872cf2de5dd1858080485 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 20 Dec 2022 12:00:09 -0600 Subject: [PATCH] scripts: Add copybara config for updating stb. --- scripts/copy.bara.sky | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 scripts/copy.bara.sky diff --git a/scripts/copy.bara.sky b/scripts/copy.bara.sky new file mode 100644 index 000000000..1ebb4a8be --- /dev/null +++ b/scripts/copy.bara.sky @@ -0,0 +1,27 @@ +# Copyright 2022, Collabora, Ltd. +# +# SPDX-License-Identifier: BSL-1.0 +"""Configuration for "copybara" to update vendored source""" + +gitlab_url = "git@gitlab.freedesktop.org:ryan.pavlik/monado.git" + +# update-stb: Update STB libraries +core.workflow( + name = "update-stb", + origin = git.github_origin( + url = "https://github.com/nothings/stb.git", + ref = "master", + ), + destination = git.destination( + url = gitlab_url, + fetch = "main", + push = "update-stb", + ), + destination_files = glob(["src/external/stb/*.h"]), + origin_files = glob(["stb_image_write.h"]), + authoring = authoring.pass_thru("Ryan Pavlik "), + transformations = [ + metadata.replace_message("external/stb: Update stb libraries from upstream"), + core.move("", "src/external/stb/"), + ], +)