]> gitweb.factorcode.org Git - factor.git/commitdiff
build-from-source: exclude RC (release candidate) versions
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 4 Jan 2024 16:50:04 +0000 (10:50 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 4 Jan 2024 16:51:42 +0000 (10:51 -0600)
extra/build-from-source/build-from-source.factor
extra/build-from-source/windows/windows.factor

index d418e7654abfdea3d73e059180fe9819c2c967e8..42cd94c0ec424fb0e8609ccc993ded9f237bfe8d 100644 (file)
@@ -299,9 +299,11 @@ ERROR: no-output-file path ;
 
 : pcre2-versions ( -- seq )
     "PCRE2Project" "pcre2" "pcre2-" list-repository-tags-matching
-    tag-refs
-    [ "-" split length 2 = ] filter
-    human-sort ;
+    tag-refs human-sort ;
+
+: pcre2-release-versions ( -- seq )
+    pcre2-versions
+    [ "-" split length 2 = ] filter ;
 
 : lz4-versions ( -- seq )
     "lz4" "lz4" "v" list-repository-tags-matching
@@ -325,18 +327,27 @@ ERROR: no-output-file path ;
 
 : postgres-versions ( -- seq )
     "postgres" "postgres" "REL_" list-repository-tags-matching
-    tag-refs
-    ! [ "_" split1-last nip [ digit? ] all? ] filter ! no RC1 or BETA1
-    human-sort ;
+    tag-refs human-sort ;
+
+: postgres-release-versions ( -- seq )
+    postgres-versions
+    ! no RC1 or BETA1
+    [ "_" split1-last nip [ digit? ] all? ] filter ;
 
 : raylib-versions ( -- seq )
     "raysan5" "raylib" "" list-repository-tags-matching
     tag-refs human-sort ;
 
+: raylib-release-versions ( -- seq )
+    raylib-versions [ "-" swap subseq? ] reject ;
+
 : raygui-versions ( -- seq )
     "raysan5" "raygui" "" list-repository-tags-matching
     tag-refs human-sort ;
 
+: raygui-release-versions ( -- seq )
+    raygui-versions [ "-" swap subseq? ] reject ;
+
 : ripgrep-versions ( -- seq )
     "BurntSushi" "ripgrep" "" list-repository-tags-matching
     tag-refs
index 2ab606de336f04e3e2058826c45743a1fb256e1d..bc45a30fe7d88120967f107572d6e781081024c5 100644 (file)
@@ -208,7 +208,7 @@ IN: build-from-source.windows
     ] with-tar-gz ;
 
 : build-pcre2-dll ( -- )
-    "PCRE2Project" "pcre2" pcre2-versions last [
+    "PCRE2Project" "pcre2" pcre2-release-versions last [
         [
             32-bit? [
                 qw{ cmake -A Win32 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DPCRE2_SUPPORT_UNICODE=ON -DPCRE2_SUPPORT_LIBZ=OFF -DPCRE2_SUPPORT_LIBBZ2=OFF -DPCRE2_SUPPORT_LIBEDIT=OFF -DPCRE2_SUPPORT_LIBREADLINE=OFF .. } try-process
@@ -223,7 +223,7 @@ IN: build-from-source.windows
 
 ! choco install -y meson winflexbison3
 : build-postgres-dll ( -- )
-    "postgres" "postgres" postgres-versions last [
+    "postgres" "postgres" postgres-release-versions last [
         "src/tools/msvc/clean.bat" prepend-current-path try-process
         qw{ meson setup build } try-process
         "build" prepend-current-path
@@ -233,7 +233,7 @@ IN: build-from-source.windows
 
 ! choco install -y glfw3
 : build-raylib-dll ( -- )
-    "raysan5" "raylib" raylib-versions last [
+    "raysan5" "raylib" raylib-release-versions last [
         [
             32-bit? [
                 qw{ cmake -A Win32 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DUSE_EXTERNAL_GLFW=OFF .. } try-process
@@ -247,7 +247,7 @@ IN: build-from-source.windows
     ] with-github-worktree-tag ;
 
 :: build-raygui-dll ( -- )
-    "raysan5" "raygui" raygui-versions last [
+    "raysan5" "raygui" raygui-release-versions last [
         "raysan5" "raylib" raylib-versions last github-tag-disk-checkout-path :> $raylib-dir
         $raylib-dir "src" append-path :> $raylib-src
         $raylib-dir "build/raylib/Release/raylib.lib" append-path :> $raylib-lib