mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-03-12 12:35:25 -07:00
70 lines
1.5 KiB
Bash
Executable File
70 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# This script packages up Travis compiled binaries
|
|
set -ex
|
|
shopt -s nullglob
|
|
cd deploy
|
|
|
|
cp ../LICENSE LICENSE.txt
|
|
sed -e $'s/$/\r/' > README.txt << END
|
|
This is a precompiled ShellCheck binary.
|
|
https://www.shellcheck.net/
|
|
|
|
ShellCheck is a static analysis tool for shell scripts.
|
|
It's licensed under the GNU General Public License v3.0.
|
|
Information and source code is available on the website.
|
|
|
|
This binary was compiled on $(date -u).
|
|
|
|
|
|
|
|
====== Latest commits ======
|
|
|
|
$(git log -n 3)
|
|
END
|
|
|
|
for file in ./*.exe
|
|
do
|
|
zip "${file%.*}.zip" README.txt LICENSE.txt "$file"
|
|
done
|
|
|
|
for file in *.linux-x86_64
|
|
do
|
|
base="${file%.*}"
|
|
cp "$file" "shellcheck"
|
|
tar -cJf "$base.linux.x86_64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
|
rm "shellcheck"
|
|
done
|
|
|
|
for file in *.linux-aarch64
|
|
do
|
|
base="${file%.*}"
|
|
cp "$file" "shellcheck"
|
|
tar -cJf "$base.linux.aarch64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
|
rm "shellcheck"
|
|
done
|
|
|
|
for file in *.linux-armv6hf
|
|
do
|
|
base="${file%.*}"
|
|
cp "$file" "shellcheck"
|
|
tar -cJf "$base.linux.armv6hf.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
|
rm "shellcheck"
|
|
done
|
|
|
|
if [ "$TRAVIS_OS_NAME" = 'osx' ];
|
|
then
|
|
brew install gnu-tar
|
|
for file in *.darwin-x86_64
|
|
do
|
|
base="${file%.*}"
|
|
cp "$file" "shellcheck"
|
|
gtar -cJf "$base.darwin.x86_64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
|
rm "shellcheck"
|
|
done
|
|
fi
|
|
|
|
for file in ./*
|
|
do
|
|
sha512sum "$file" > "$file.sha512sum"
|
|
done
|