mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[scripts] format bash scripts
This commit is contained in:
parent
30c2744151
commit
6f95c84592
@ -4,10 +4,9 @@ SCRIPT_NAME="${BASH_SOURCE[0]}"
|
|||||||
SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]}")
|
SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]}")
|
||||||
SCRIPT_PATH=$(realpath "$SCRIPT_PATH")
|
SCRIPT_PATH=$(realpath "$SCRIPT_PATH")
|
||||||
|
|
||||||
if [ $# -ne 1 ];
|
if [ $# -ne 1 ]; then
|
||||||
then
|
echo "$0 <reference commit or tag>"
|
||||||
echo "$0 <reference commit or tag>"
|
exit 1
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BASE_REF=$1
|
BASE_REF=$1
|
||||||
@ -19,4 +18,4 @@ cp scripts/abi-suppr.txt abi-checker/
|
|||||||
curl https://gist.githubusercontent.com/akallabeth/aa35caed0d39241fa17c3dc8a0539ea3/raw/ef12f8c720ac6be51aa1878710e2502b1b39cf4c/check-abi -o abi-checker/check-abi
|
curl https://gist.githubusercontent.com/akallabeth/aa35caed0d39241fa17c3dc8a0539ea3/raw/ef12f8c720ac6be51aa1878710e2502b1b39cf4c/check-abi -o abi-checker/check-abi
|
||||||
chmod +x abi-checker/check-abi
|
chmod +x abi-checker/check-abi
|
||||||
|
|
||||||
./abi-checker/check-abi -s abi-checker/abi-suppr.txt --parameters="-Cabi-checker/config-abi.txt" $BASE_REF $(git rev-parse HEAD)
|
./abi-checker/check-abi -s abi-checker/abi-suppr.txt --parameters="-Cabi-checker/config-abi.txt" $BASE_REF $(git rev-parse HEAD)
|
||||||
|
@ -25,7 +25,6 @@ if [ $# -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
SCRIPTS=$(find ${SRC_PATH} -name "*.sh" -not -path "${SRC_PATH}/.git/*")
|
SCRIPTS=$(find ${SRC_PATH} -name "*.sh" -not -path "${SRC_PATH}/.git/*")
|
||||||
for script in $SCRIPTS; do
|
for script in $SCRIPTS; do
|
||||||
echo $script
|
echo $script
|
||||||
|
@ -66,8 +66,8 @@ if [ $ARG_SHARED -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $CLEAN -ne 0 ]; then
|
if [ $CLEAN -ne 0 ]; then
|
||||||
rm -rf "$BUILD_BASE"
|
rm -rf "$BUILD_BASE"
|
||||||
rm -rf "$INSTALL_BASE"
|
rm -rf "$INSTALL_BASE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function do_clone {
|
function do_clone {
|
||||||
@ -96,11 +96,9 @@ function do_download {
|
|||||||
dir=$4
|
dir=$4
|
||||||
|
|
||||||
if [ ! -f $file ]; then
|
if [ ! -f $file ]; then
|
||||||
if command -v curl 2>&1 >/dev/null
|
if command -v curl 2>&1 >/dev/null; then
|
||||||
then
|
|
||||||
curl -o $file $url/$file
|
curl -o $file $url/$file
|
||||||
elif command -v wget 2>&1 >/dev/null
|
elif command -v wget 2>&1 >/dev/null; then
|
||||||
then
|
|
||||||
wget -O $file $url/$file
|
wget -O $file $url/$file
|
||||||
else
|
else
|
||||||
echo "Could not find wget or curl, exiting"
|
echo "Could not find wget or curl, exiting"
|
||||||
@ -109,12 +107,12 @@ function do_download {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $file.sha256sum ]; then
|
if [ ! -f $file.sha256sum ]; then
|
||||||
echo "$hash $file" > $file.sha256sum
|
echo "$hash $file" >$file.sha256sum
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sha256sum -c $file.sha256sum
|
sha256sum -c $file.sha256sum
|
||||||
if [ -d $dir ]; then
|
if [ -d $dir ]; then
|
||||||
rm -rf $dir
|
rm -rf $dir
|
||||||
fi
|
fi
|
||||||
mkdir $dir
|
mkdir $dir
|
||||||
tar xf $file --strip-components=1 -C $dir
|
tar xf $file --strip-components=1 -C $dir
|
||||||
|
Loading…
Reference in New Issue
Block a user