sh-elf-gcc/install.sh
2021-01-02 00:13:11 +01:00

21 lines
430 B
Bash
Executable file

#! /usr/bin/env bash
source util.sh
PREFIX="$1"
cd build
echo "$TAG Installing to local folder..."
run_quietly giteapc-install.log \
make install-strip-gcc install-strip-target-libgcc
cd ..
# Symbolic link executables to $PREFIX/bin
echo "$TAG Symlinking binaries..."
for x in bin/*; do
ln -s "$(pwd)/$x" "$PREFIX/$x"
done
# Cleanup build files
echo "$TAG Cleaning up build files..."
rm -rf gcc-*/ gcc-*.tar.*
rm -rf build/