diff options
| author | Stefan Eßer <se@FreeBSD.org> | 2022-05-10 12:47:43 +0000 |
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 2022-05-10 12:47:43 +0000 |
| commit | ed0603704174b01c25b49efc08c82e1532dc5622 (patch) | |
| tree | 6b8cdeb6ee3b66b9cce2885d793a0327c76dc27f /scripts | |
| parent | bc75dcc4ce682562390fa32e7cd63c08160e21b9 (diff) | |
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/package.sh | 13 | ||||
| -rwxr-xr-x | scripts/release.sh | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/scripts/package.sh b/scripts/package.sh index 34692f7ab20a..e3a35b0fe65d 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -35,6 +35,7 @@ # * git # * stat # * tar +# * gzip # * xz # * sha512sum # * sha256sum @@ -182,6 +183,14 @@ cd .. parent="$repo/.." # Cleanup old stuff. +if [ -f "$projver.tar.gz" ]; then + rm -rf "$projver.tar.gz" +fi + +if [ -f "$projver.tar.gz.sig" ]; then + rm -rf "$projver.tar.gz.sig" +fi + if [ -f "$projver.tar.xz" ]; then rm -rf "$projver.tar.xz" fi @@ -192,6 +201,8 @@ fi # Tar and compress and move into the parent directory of the repo. tar cf "$projver.tar" "$projver/" +gzip -k "$projver.tar" +mv "$projver.tar.gz" "$parent" xz -z -v -9 -e "$projver.tar" > /dev/null 2> /dev/null mv "$projver.tar.xz" "$parent" @@ -243,6 +254,8 @@ rm -rf windows/lib/{Win32,x64}/{Debug,ReleaseMD,ReleaseMT}/bcl.vcxproj.FileListA zip -r $projver-windows.zip windows > /dev/null printf '\n' +shasum "$projver.tar.gz" +printf '\n' shasum "$projver.tar.xz" printf '\n' shasum "$projver-windows.zip" diff --git a/scripts/release.sh b/scripts/release.sh index 12097b1cc8b9..02d3dd5dae24 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -601,6 +601,7 @@ clang_flags="-Weverything -Wno-padded -Wno-switch-enum -Wno-format-nonliteral" clang_flags="$clang_flags -Wno-cast-align -Wno-missing-noreturn -Wno-disabled-macro-expansion" clang_flags="$clang_flags -Wno-unreachable-code -Wno-unreachable-code-return" clang_flags="$clang_flags -Wno-implicit-fallthrough -Wno-unused-macros -Wno-gnu-label-as-value" +clang_flags="$clang_flags -Wno-declaration-after-statement" # -Wno-undef is here because Clang seems to think BC_C11 is undefined, when it's defined. clang_flags="$clang_flags -Wno-undef" gcc_flags="-Wno-maybe-uninitialized -Wno-clobbered" |
