mirror of
https://github.com/ceph/ceph
synced 2024-12-26 05:25:09 +00:00
3aae5ca6fd
/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>
21 lines
312 B
Bash
Executable File
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*
|