ceph/qa/workunits/kernel_untar_build.sh
Alan Somers 3aae5ca6fd scripts: fix bash path in shebangs
/bin/bash is a Linuxism.  Other operating systems install bash to
different paths.  Use /usr/bin/env in shebangs to find bash.

Signed-off-by: Alan Somers <asomers@gmail.com>
2017-07-27 13:24:26 -06:00

21 lines
312 B
Bash
Executable File

#!/usr/bin/env bash
set -e
wget -q http://download.ceph.com/qa/linux-4.0.5.tar.xz
mkdir t
cd t
tar Jxvf ../linux*.xz
cd linux*
make defconfig
make -j`grep -c processor /proc/cpuinfo`
cd ..
if ! rm -rv linux* ; then
echo "uh oh rm -r failed, it left behind:"
find .
exit 1
fi
cd ..
rm -rv t linux*