summaryrefslogtreecommitdiff
path: root/postprocess.sh
blob: bc704929012f7972425ead0813443ec0b5d40e35 (plain)
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
export LANG=C
export LC_ALL=C
export LC_CTYPE=C


mfpp=`sysctl -n kern.maxfilesperproc`
mf=`sysctl -n kern.maxfiles`


if [ $mfpp -lt 65563 -o $mf -lt 65563 ]; then
  printf "System resources not tuned, %d and %d please run:\n" $mfpp $mf
  printf "sudo sysctl kern.maxfilesperproc=65563\n"
  printf "sudo sysctl kern.maxfiles=65563\n"
  exit
fi

ulimit -n 65563

export PATH=${PATH}:`pwd -P`/bin/

if ! test -d work; then
  printf "This directory contains no work/ directory.\n"
  [ -d ../work ] && printf "(but .. does)\n"
  exit 1
fi

cd work || exit 1

for a in ????_Q?; do ./sort_plz $a; done