diff --git a/build.sh b/build.sh index 3739722..64b3406 100755 --- a/build.sh +++ b/build.sh @@ -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