File: kernel_untar_build.sh

package info (click to toggle)
ceph 10.2.11-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 84,660 kB
  • sloc: cpp: 851,974; ansic: 54,245; python: 45,589; sh: 30,008; java: 20,516; asm: 10,148; perl: 8,435; makefile: 5,956; php: 909
file content (20 lines) | stat: -rwxr-xr-x 304 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/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*