blob: 3107e5d146f9895abbc9628961852741a2d1c925 (
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
|
#!/bin/csh -f
if (! $?RELEASEDIR) then
echo RELEASEDIR must be set
exit 1
endif
if (! $?DESTDIR) then
echo DESTDIR must be set
exit 1
endif
set arch=`uname -m`
set listsdir=`pwd`/lists
set tardir=$RELEASEDIR
set fsdir=$DESTDIR
cd $fsdir
set lists=(base comp etc games text)
# SPECIAL: man misc
# EXTRA SPECIAL (not done here): secr
foreach setname ($lists)
echo -n "${setname}: "
cat $listsdir/$setname/mi $listsdir/$setname/md.${arch} | sort | \
pax -w -d | gzip -9 > ${tardir}/$setname.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.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.tar.gz
echo "done."
|