]> Git repositories of Nishi - tewi.git/commitdiff
update koakumafile
authorNishi <nishi@nishi.boats>
Thu, 3 Oct 2024 04:50:01 +0000 (04:50 +0000)
committerNishi <nishi@nishi.boats>
Thu, 3 Oct 2024 04:50:01 +0000 (04:50 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@236 8739d7e6-ffea-ec47-b151-bdff447c6205

Koakumafile

index cabb97ba79160cd381c41837c71a24e879d8638a..95aa2caf8bd0df224d349f4d53445d3e158fd96e 100644 (file)
@@ -21,6 +21,28 @@ proc run {project_name} {
                set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
                RunCommand "make PLATFORM=watcom"
                set dirname "watcom"
+       } elseif { "$project_name" == "Tewi-MinGW-32" || "$project_name" == "Tewi-MinGW-64" } {
+               RunCommand "git clone https://github.com/clamwin/openssl"
+               set bits 32
+               if { "$project_name" == "Tewi-MinGW-32" } {
+                       foreach filen [glob openssl/lib/mingw/x86/*] {
+                               RunCommand "cp $filen openssl/lib/"
+                       }
+               } else {
+                       set bits 64
+                       foreach filen [glob openssl/lib/mingw/x64/*] {
+                               RunCommand "cp $filen openssl/lib/"
+                       }
+               }
+               set win "win$bits"
+               RunCommand "./installer.sh $win"
+               RunCommand "doas mkdir -p /raid/f/g/tewi/$win"
+               RunCommand "doas mkdir -p /raid/ftp/pub/tewi/$win"
+               RunCommand "doas cp install-ssl.exe /raid/f/g/tewi/$win/tewiinst$bits-[exec make get-version]-ssl.exe"
+               RunCommand "doas cp install-nossl.exe /raid/f/g/tewi/$win/tewiinst$bits-[exec make get-version]-nossl.exe"
+               RunCommand "doas cp install-ssl.exe /raid/ftp/pub/tewi/$win/tewiinst$bits-[exec make get-version]-ssl.exe"
+               RunCommand "doas cp install-nossl.exe /raid/ftp/pub/tewi/$win/tewiinst$bits-[exec make get-version]-nossl.exe"
+               return
        } else {
                RunCommand "make"
        }