]> gitweb.factorcode.org Git - factor.git/commitdiff
build-from-source.windows: better zstd version list
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 5 Dec 2023 00:36:47 +0000 (18:36 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 5 Dec 2023 00:36:47 +0000 (18:36 -0600)
extra/build-from-source/windows/windows.factor

index a028e7bfa43599991e6c651c80abc30b8d2dadbd..f5259327dddea0e9db1513a95020f99a26a162cc 100644 (file)
@@ -453,7 +453,14 @@ IN: build-from-source.windows
 
 : zstd-versions ( -- seq )
     "facebook" "zstd" "v" list-repository-tags-matching
-    tag-refs human-sort ;
+    tag-refs human-sort
+    [
+        {
+            [ length 2 >= ]
+            [ "v" head? ]
+            [ second digit? ]
+        } 1&&
+    ] filter ;
 
 : build-zstd-dll ( -- )
     "facebook" "zstd" zstd-versions last [