This file is indexed.

/usr/src/blcr-0.8.2/contrib/batch_build.in is in blcr-dkms 0.8.2-15ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# Given a list of kernel build directories on the command line,
# this script will try to compile blcr against each of them.
# This depends on having a System.map file in the kernel dir
# with a redhat-style suffix to identify its type (smp, etc.).
# A System.map w/o the suffix is possible, but not if using the
# /boot/kernel.h mechanism.

skipped=0
failed=0
total=0

build () {
  _srcdir=$1
  _ver=$2
  _args=$3
  _map=$4
  _blddir=BUILD-${_ver}
  _logfile=log-${_ver}
  echo -n "`date`: building ${_ver}... "
  if [ -e ${_blddir} ]; then
    echo "SKIPPED (build directory exists)"
    skipped=`expr $skipped + 1`
    return 1
  fi
  ( \
	mkdir $_blddir && \
	cd $_blddir && \
	@TOP_SRCDIR@/configure --with-linux=$_srcdir ${_args} && \
	make && \
	echo SUCCESS \
  ) >& $_logfile
  if [ "$?" = 0 ]; then
    echo SUCCESS
    rm -Rf ${_blddir}
  else
    echo FAILURE
    failed=`expr $failed + 1`
  fi
  total=`expr $total + 1`
}

for dir in $*; do
  ver=`basename $dir | sed -e s/linux-//`
  for s in $dir/System.map-*; do
    case $s in
      *-\*) break;;
      *smp)		build $dir ${ver}smp --with-kernel-type=smp $s;;
      *bigmem)		build $dir ${ver}bigmem --with-kernel-type=bigmem $s;;
      *hugemem)		build $dir ${ver}bigmem --with-kernel-type=hugemem $s;;
      *enterprise)	build $dir ${ver}enterprise --with-kernel-type=enterprise $s;;
      *)		build $dir ${ver} --with-kernel-type=up $s;;
    esac
  done
  if [ -e $dir/System.map ]; then
    build $dir $ver
  fi
done
    
if [ $failed != 0 ]; then
  echo "### FAILED $failed of $total builds ($skipped skipped)."
  exit 1;
fi
if [ $skipped != 0 ]; then
  echo "### WARNING skipped $skipped builds."
fi
exit 0