summaryrefslogtreecommitdiff
path: root/distrib/sets/makeflist
blob: 86e8f70cf6f898b39ae90d407936df335b511820 (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
#!/bin/csh -f
#	$OpenBSD: makeflist,v 1.5 2000/03/01 22:10:08 todd Exp $


set arch=`machine`
set listsdir=`pwd`/lists

set TMPFILE=/tmp/_LIST.$$

set lists=(base comp etc game)
# SPECIAL: man misc

foreach setname ($lists)
	cat $listsdir/$setname/mi $listsdir/$setname/md.${arch} >>! $TMPFILE
end

set setname=man
grep ${arch} $listsdir/man/md_share | \
    cat $listsdir/$setname/mi $listsdir/$setname/md.${arch} - >>! $TMPFILE

set setname=misc
grep -v ${arch} $listsdir/man/md_share | \
    cat $listsdir/$setname/mi $listsdir/$setname/md.${arch} - >>! $TMPFILE

sort $TMPFILE
/bin/rm $TMPFILE