blob: e21845a3ef1b1cf9e1ca3d6febe410716459ce78 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#!/bin/csh -f
set RELEASE=$1
if ( "X${RELEASE}" == "X" ) then
echo "Usage: `basename $0` <OSREVISION>"
exit 1
endif
if (! $?RELEASEDIR) then
echo RELEASEDIR must be set
exit 1
endif
if (! $?DESTDIR) then
echo DESTDIR must be set
exit 1
endif
set arch=`machine`
set listsdir=`pwd`/lists
set tardir=$RELEASEDIR
set fsdir=$DESTDIR
cd $fsdir
set lists=(base comp etc game)
# SPECIAL: man misc
foreach setname ($lists)
echo -n "${setname}: "
cat $listsdir/$setname/mi $listsdir/$setname/md.${arch} | sort | \
pax -w -d | gzip -9 > ${tardir}/${setname}${RELEASE}.tar.gz
echo "done."
end
set setname=man
echo -n "${setname}: "
grep ${arch} $listsdir/man/md_share | \
cat $listsdir/$setname/mi $listsdir/$setname/md.${arch} - | sort | \
pax -w -d | gzip -9 > ${tardir}/${setname}${RELEASE}.tar.gz
echo "done."
set setname=misc
echo -n "${setname}: "
grep -v ${arch} $listsdir/man/md_share | \
cat $listsdir/$setname/mi $listsdir/$setname/md.${arch} - | sort | \
pax -w -d | gzip -9 > ${tardir}/${setname}${RELEASE}.tar.gz
echo "done."
|