summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-11-09 20:52:41 +0000
committerdavidovski <david@davidovski.xyz>2021-11-09 20:52:41 +0000
commita1945ff8a3348927871cdfd18c86462a4d9c941e (patch)
tree52cad589dd79fe90f10370d71aa9283985cf3370
parentffc0eedf3095abc18c0b8618ec8a9ab6a991e1dd (diff)
fixed actually
-rw-r--r--build.py11
-rwxr-xr-xbuild.sh3
2 files changed, 6 insertions, 8 deletions
diff --git a/build.py b/build.py
index 9dd79b4..44249c3 100644
--- a/build.py
+++ b/build.py
@@ -270,18 +270,19 @@ def create_repos():
print("Already have git path")
for repo in get_repos():
+ repo = repo.strip()
print(repo)
name = ".".join(repo.split("/")[-1].split(".")[:-1])
+ os.system(f"mkdir -p /tmp/repos/{name} ;\
+ cd /tmp/repos/{name} ;\
+ git pull || git clone {repo} /tmp/repos/{name}")
- os.system(f"mkdir -p {dist}/git/{name} ;\
- cd {dist}/git/{name} ;\
- git pull || git clone {name}")
-
- command = subprocess.run(f"cd {dist}/git/{name} && git log --pretty=format:'%h%x09%an%x09%ad%x09%s' --no-decorate -1", stdout=subprocess.PIPE, shell=True)
+ command = subprocess.run(f"cd /tmp/repos/{name} && git log --pretty=format:'%h%x09%an%x09%ad%x09%s' --no-decorate -1", stdout=subprocess.PIPE, shell=True)
commit = command.stdout.decode()
traverse_repo(os.path.join(git_path, name), name, commit, repo)
+ os.system(f"cp -r /tmp/repos/* {dist}/git")
make()
create_repos()
diff --git a/build.sh b/build.sh
index 7c1428a..4abdef5 100755
--- a/build.sh
+++ b/build.sh
@@ -2,6 +2,3 @@
python build.py
python gif.py
-./sync.sh
-
-