Skip to content

Commit

Permalink
Add GCC8 to packages list (#5)
Browse files Browse the repository at this point in the history
This commit adds bin packages list, that would be installed without --build-from-source option.
And uses this list to add GCC8 to linuxbrew packages.
  • Loading branch information
spolitov authored and mbautin committed Oct 15, 2019
1 parent 51526f2 commit c149e8a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions brew-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ BREW_PACKAGES=(
s3cmd
)

BREW_BIN_PACKAGES=(
gcc@8
)

successful_packages=()
failed_packages=()

Expand All @@ -123,6 +127,15 @@ for package in "${BREW_PACKAGES[@]}"; do
fi
done

for package in "${BREW_BIN_PACKAGES[@]}"; do
if ( set -x; ./bin/brew install "$package" ); then
successful_packages+=( "$package" )
else
echo >&2 "Failed to install package: $package"
failed_packages+=( "$package" )
fi
done

echo "Successfully installed packages: ${successful_packages[*]}"

if [[ ${#failed_packages[@]} -gt 0 ]]; then
Expand Down

0 comments on commit c149e8a

Please sign in to comment.