From cee7ccf4762c168cf48f075b302117d83039fca4 Mon Sep 17 00:00:00 2001 From: rina Date: Tue, 25 Jun 2024 15:26:47 +1000 Subject: [PATCH] deduplicate with symlinks --- build.py | 3 +++ versions.csv | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/build.py b/build.py index 516fd34..ff7a626 100755 --- a/build.py +++ b/build.py @@ -33,6 +33,9 @@ def main(): shutil.copytree(result + '/' + path + '/.', OUT_PATH + '/' + v, copy_function=shutil.copy) + subprocess.check_call(['chmod', '+rw', '-R', OUT_PATH + '/' + v]) + subprocess.check_call(['nix', 'run', 'nixpkgs#jdupes', '--', '-r', OUT_PATH, '-l']) + shutil.copy('./index.html', OUT_PATH) shutil.copy('./reset.css', OUT_PATH) diff --git a/versions.csv b/versions.csv index 5bf8b45..1a38ab7 100644 --- a/versions.csv +++ b/versions.csv @@ -1,2 +1,6 @@ 1,github:katrinafyi/pac-nix/d2b687c2f77439adea84716f5e40d01bcf5c19e1#aslp_web,lib/ocaml/4.14.1/site-lib/aslp_web/,2024-06-25 14:01:20+1000 +2,github:katrinafyi/pac-nix/d2b687c2f77439adea84716f5e40d01bcf5c19e1#aslp_web,lib/ocaml/4.14.1/site-lib/aslp_web/,2024-06-25 14:01:20+1000 +3,github:katrinafyi/pac-nix/d2b687c2f77439adea84716f5e40d01bcf5c19e1#aslp_web,lib/ocaml/4.14.1/site-lib/aslp_web/,2024-06-25 14:01:20+1000 +4,github:katrinafyi/pac-nix/d2b687c2f77439adea84716f5e40d01bcf5c19e1#aslp_web,lib/ocaml/4.14.1/site-lib/aslp_web/,2024-06-25 14:01:20+1000 +5,github:katrinafyi/pac-nix/d2b687c2f77439adea84716f5e40d01bcf5c19e1#aslp_web,lib/ocaml/4.14.1/site-lib/aslp_web/,2024-06-25 14:01:20+1000