Skip to content

Commit

Permalink
Merge pull request #2 from mariux64/use-tmpdir
Browse files Browse the repository at this point in the history
Use tmpdir
  • Loading branch information
donald authored Apr 5, 2022
2 parents ac263d4 + 977d541 commit e4c41a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

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=$TMPDIR/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 e4c41a4

Please sign in to comment.