mirror of
https://git.suyu.dev/suyu/ext-linux-bin
synced 2024-11-21 14:29:04 -07:00
16 lines
223 B
Bash
16 lines
223 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
THIS=$(readlink -e $0)
|
|
VERSION=$1
|
|
UBUNTU=$2
|
|
|
|
OUT=/src/binutils-$VERSION-$UBUNTU
|
|
|
|
mkdir build
|
|
cd build
|
|
/src/binutils-$VERSION/configure
|
|
make -j$(nproc)
|
|
|
|
make -j$(nproc) install DESTDIR=$OUT
|
|
cp $THIS $OUT
|