Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
O=$1
2
shift
3
objtype=$1
4
shift
5
 
6
ls -p ../$objtype/*.[cs] >[2]/dev/null | sed 's/..$//' > /tmp/reduce.$pid
7
#
8
#	if empty directory, just return the input files
9
#
10
if (! ~ $status '|') {
11
	echo $*
12
	rm /tmp/reduce.$pid
13
	exit 0
14
}
15
echo $* | tr ' ' \012 | grep -v -f /tmp/reduce.$pid | tr \012 ' '
16
rm /tmp/reduce.$pid