Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ tools/export_policy.toml text eol=lf
# Linux and a Windows checkout hash identically (upstream/documents.json and the
# release archive depend on it).
upstream/** -text

# Boost.Wave test data in a directory named with non-ASCII characters: mcpp's
# extraction of the release archive on Windows decodes the UTF-8 name as an OEM
# code page. Only Wave's own tests read it, so the archive leaves it out; the
# vendored tree keeps it.
upstream/boost/libs/wave/test/testwave/testfiles/utf8-test-* export-ignore
2 changes: 1 addition & 1 deletion README.zh.hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Boost 1.92.0 的 C++23 具名模組封裝 —— 用 `import` 引入,繼續寫 `boost::`。

**[English](README.md)** · [简体中文](README.zh.md) · [繁體中文](README.zh.hant.md) · [上游](https://github.com/boostorg/boost) · [發佈](https://github.com/mcpplibs/boost-m/releases) · [mcpp](https://github.com/mcpp-community/mcpp) · [索引](https://github.com/mcpplibs/mcpp-index)
**[English](README.md)** · [简体中文](README.zh.md) · [繁體中文](README.zh.hant.md) · [Upstream](https://github.com/boostorg/boost) · [發佈](https://github.com/mcpplibs/boost-m/releases) · [mcpp](https://github.com/mcpp-community/mcpp) · [索引](https://github.com/mcpplibs/mcpp-index)

[![C++23](https://img.shields.io/badge/C%2B%2B-23-blue.svg)](https://en.cppreference.com/w/cpp/23)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
Expand Down
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Boost 1.92.0 的 C++23 命名模块封装 —— 用 `import` 引入,继续写 `boost::`。

**[English](README.md)** · [简体中文](README.zh.md) · [繁體中文](README.zh.hant.md) · [上游](https://github.com/boostorg/boost) · [发布](https://github.com/mcpplibs/boost-m/releases) · [mcpp](https://github.com/mcpp-community/mcpp) · [索引](https://github.com/mcpplibs/mcpp-index)
**[English](README.md)** · [简体中文](README.zh.md) · [繁體中文](README.zh.hant.md) · [Upstream](https://github.com/boostorg/boost) · [发布](https://github.com/mcpplibs/boost-m/releases) · [mcpp](https://github.com/mcpp-community/mcpp) · [索引](https://github.com/mcpplibs/mcpp-index)

[![C++23](https://img.shields.io/badge/C%2B%2B-23-blue.svg)](https://en.cppreference.com/w/cpp/23)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
Expand Down
15 changes: 13 additions & 2 deletions tools/ci/update_mcpp_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
def version_block(key, global_url, cn_url, sha256, indent):
pad = " " * indent
inner = " " * (indent + 4)
if cn_url is None:
# Without a mirror the index wants the plain string: its lint refuses a
# url table whose CN entry is not a gitcode release asset.
return (
f'{pad}["{key}"] = {{\n'
f'{inner}url = "{global_url}",\n'
f'{inner}sha256 = "{sha256}",\n'
f'{pad}}},\n'
)
url_inner = " " * (indent + 8)
return (
f'{pad}["{key}"] = {{\n'
Expand Down Expand Up @@ -82,7 +91,9 @@ def main():
parser.add_argument("--file", required=True, help="descriptor to patch in place")
parser.add_argument("--key", required=True, help="bare xpm version key, no leading v")
parser.add_argument("--global-url", required=True)
parser.add_argument("--cn-url", required=True)
parser.add_argument("--cn-url",
help="gitcode mirror asset; omit while no mirror exists "
"(rerun with it to replace the block)")
parser.add_argument("--sha256", required=True)
parser.add_argument("--indent", type=int, default=12,
help="indent of the version key lines (default: 12)")
Expand All @@ -94,7 +105,7 @@ def main():
tag = "mwrap-" + args.key
asset = "boost-m-" + args.key + ".tar.gz"
for label, url in (("GLOBAL", args.global_url), ("CN", args.cn_url)):
if asset not in url:
if url is not None and asset not in url:
sys.exit(f"error: {label} URL does not name the asset '{asset}': {url}")
if tag not in args.global_url:
sys.exit(f"error: GLOBAL URL does not name the immutable tag '{tag}': {args.global_url}")
Expand Down
Loading