mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 13:31:36 -07:00
16 lines
474 B
Bash
Executable file
16 lines
474 B
Bash
Executable file
#!/bin/sh
|
|
set -xe
|
|
cd /scratch
|
|
{
|
|
tar xzv --strip-components=1
|
|
chmod +x striptests && ./striptests
|
|
mkdir "$TARGETNAME"
|
|
# This script does not cabal update because compiling anything new is slow
|
|
( IFS=';'; cabal build $CABALOPTS --enable-executable-static )
|
|
find . -name shellcheck -type f -exec mv {} "$TARGETNAME/" \;
|
|
ls -l "$TARGETNAME"
|
|
strip -s "$TARGETNAME/shellcheck"
|
|
ls -l "$TARGETNAME"
|
|
"$TARGETNAME/shellcheck" --version
|
|
} >&2
|
|
tar czv "$TARGETNAME"
|