blob: 401a70f499078c1c91992814414f024bef2ce0de (
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
30
31
32
|
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
printf "Sorting files from issue %s\n" $a
./sort_plz $a
done
|