mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-03-12 12:35:25 -07:00
17 lines
474 B
Bash
Executable File
17 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"
|