forked from Yubico/developers.yubico.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·25 lines (20 loc) · 705 Bytes
/
build
File metadata and controls
executable file
·25 lines (20 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python
import json
from os import path
from devyco.main import main
from subprocess import check_call
import generate_sitemap
if __name__ == '__main__':
base_dir = path.abspath(path.dirname(__file__)) # Use dir of file
settings = {}
settings_file = path.join(base_dir, 'settings.json')
if path.isfile(settings_file):
with open(settings_file, 'r') as f:
settings = json.load(f)
# we have repos that use LFS which require this step
check_call(["git", "lfs", "install", "--skip-repo"])
main(base_dir, settings)
print("Generating sitemap...")
generate_sitemap.main()
print("Sitemap generation complete.")
print("All done!")