add auto gen
This commit is contained in:
parent
ffae891072
commit
2a8761a714
2 changed files with 22 additions and 1 deletions
22
auto_gen.py
Normal file
22
auto_gen.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
import os
|
||||
|
||||
archs = ("x86_64",)
|
||||
base_text = """# Parch_os repo
|
||||
|
||||
"""
|
||||
base_url = "https://github.com/parch-os/parch_repo/raw/main/{arch}/{package}"
|
||||
|
||||
for arch in archs:
|
||||
packages = os.listdir(arch)
|
||||
packages.sort()
|
||||
for package in packages:
|
||||
base_text += (
|
||||
"[{}]".format(package.split(".")[0])
|
||||
+ "("
|
||||
+ base_url.format(arch=arch, package=package)
|
||||
+ ")"
|
||||
+ "\n"
|
||||
)
|
||||
|
||||
with open("README.md", "w") as f:
|
||||
f.write(base_text)
|
|
@ -1 +0,0 @@
|
|||
Parch packages
|
Loading…
Add table
Reference in a new issue