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
cwd=`{basename -d `{pwd}}
7
cwd=$cwd/$objtype
8
bind -ac /sys/src/libsec/$objtype $cwd
9
 
10
ls -p ../$objtype/*.[cs] >[2]/dev/null | sed 's/..$//' > /tmp/reduce.$pid
11
#
12
#	if empty directory, just return the input files
13
#
14
if (! ~ $status '|') {
15
	echo $*
16
	rm /tmp/reduce.$pid
17
	unmount $cwd
18
	exit 0
19
}
20
echo $* | tr ' ' \012 | grep -v -f /tmp/reduce.$pid | tr \012 ' '
21
rm /tmp/reduce.$pid
22
unmount $cwd