librsvg source for verification 2026-05-22

This commit is contained in:
2026-05-22 16:45:08 +08:00
commit 75af7ac721
2138 changed files with 161177 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python3
# Simple script to check whether rustc-version is to be checkedn against minimum supported rust version
import sys
from argparse import ArgumentParser
if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument('--string', help='String to check is a version-like string', required=True)
args = parser.parse_args()
parts = args.string.split('.')
if len(parts) != 2 and len(parts) != 3:
print('skip')
else:
for p in parts:
try:
int(p)
except ValueError:
print('skip')
sys.exit()
print('check')