mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
scripts: Add copybara config for updating stb.
This commit is contained in:
parent
00b1c9531d
commit
2b78b6de1b
27
scripts/copy.bara.sky
Normal file
27
scripts/copy.bara.sky
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Copyright 2022, Collabora, Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: BSL-1.0
|
||||
"""Configuration for "copybara" <https://github.com/google/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 <ryan.pavlik@collabora.com>"),
|
||||
transformations = [
|
||||
metadata.replace_message("external/stb: Update stb libraries from upstream"),
|
||||
core.move("", "src/external/stb/"),
|
||||
],
|
||||
)
|
Loading…
Reference in a new issue