From 6c216b31e8af2e0d32033499d61b584c4075da8e Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 3 May 2024 06:38:41 -0400 Subject: [PATCH] Improve release script, update root level extension library --- AMOSPro_BSDSocket.Lib | Bin 6272 -> 6272 bytes bin/release | 18 ++++++++++++++++-- src/BSDSocket.s | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/AMOSPro_BSDSocket.Lib b/AMOSPro_BSDSocket.Lib index 7995e0afb4502526f6a4d4622797cbbd480e2e34..604072b5e5339085b58e7aee82f775badc8293b1 100644 GIT binary patch delta 28 dcmZoLY%tv5CBbZJU^LlRLY)UlGe7|ICjeva1;zjX delta 28 dcmZoLY%tv5CBbZBWH#AXLY)UlGe7|ICjex61<(Kh diff --git a/bin/release b/bin/release index d62f406..94e7bb2 100755 --- a/bin/release +++ b/bin/release @@ -24,6 +24,22 @@ source.lines.each do |line| end end +FileUtils.cp 'src/AMOSPro_BSDSocket.Lib', 'AMOSPro_BSDSocket.Lib' + +strings = [] +Open3.popen2e('strings', 'AMOSPro_BSDSocket.Lib') do |stdin, stdout_and_stderr, wait_thr| + stdin.close + + stdout_and_stderr.each { |l| strings << l } + + wait_thr.join +end + +unless strings.any? { |s| s[version] } + puts "Extension build doesn't match source version! Did you rebuild it yet on the Amiga?" + exit 1 +end + FileUtils.mkdir_p 'dist' build_base = 'build' @@ -35,8 +51,6 @@ FileUtils.rm_rf 'aminet' FileUtils.mkdir_p build_dir FileUtils.mkdir_p 'aminet' -FileUtils.cp 'src/AMOSPro_BSDSocket.Lib', 'AMOSPro_BSDSocket.Lib' - hackerbun_target = File.expand_path("dist/AMOSPro_BSDSocket_#{version}.lha") [ diff --git a/src/BSDSocket.s b/src/BSDSocket.s index 09885c6..df5a527 100644 --- a/src/BSDSocket.s +++ b/src/BSDSocket.s @@ -7,7 +7,7 @@ ; extension number 18 ExtNb equ 18-1 Version MACRO - dc.b "1.1.4-20240426" + dc.b "1.1.4-20240502" ENDM VerNumber equ $1