Browse Source

Add gzip to the package script

This was requested by a user.

Signed-off-by: Gavin Howard <gavin@yzena.com>
line_libs 5.2.5
Gavin Howard 2 months ago
parent
commit
c96de7c0f6
Signed by: gavin
GPG Key ID: C08038BDF280D33E
  1. 13
      scripts/package.sh

13
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"
@ -242,6 +253,8 @@ rm -rf windows/lib/{Win32,x64}/{Debug,ReleaseMD,ReleaseMT}/bcl.vcxproj.FileListA
# Zip the Windows stuff.
zip -r $projver-windows.zip windows > /dev/null
printf '\n'
shasum "$projver.tar.gz"
printf '\n'
shasum "$projver.tar.xz"
printf '\n'

Loading…
Cancel
Save