Skip to content

Commit

Permalink
build.sh: Use TMPDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Apr 5, 2022
1 parent ac263d4 commit 7936e89
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

set -e

export TEMPDIR=${TEMPDIR:-/scratch/local}

releases=(
5.10.92-421 5.10.82-414 5.10.81-412 5.10.70-403 5.10.47-390 5.10.24-375
5.4.97-368 5.4.72-349 5.4.57-340 5.4.39-334
)

for release in "${releases[@]}"; do
test -d /scratch/local/linux-$release.x86_64 || (cd /scratch/local && tar xf /src/mariux/beeroot/build-archives/linux-$release.x86_64.beebuild.tar.bz2)
test -d $TMPDIR/linux-$release.x86_64 || (cd $TMPDIR && tar xf /src/mariux/beeroot/build-archives/linux-$release.x86_64.beebuild.tar.bz2)
(
cd fix-lpp
KERNEL=/scratch/local/linux-$release.x86_64/build make clean
KERNEL=/scratch/local/linux-$release.x86_64/build make
KERNEL=$TMPDDR/linux-$release.x86_64/build make clean
KERNEL=$TMPDIR/linux-$release.x86_64/build make
)
ver=${release%-*} # 5.10.92
build=${release#*-} # 421
Expand Down

0 comments on commit 7936e89

Please sign in to comment.