blob: f1c77a4bdbd91c388fded73ef39d1b14a8c91a2d (
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
50
51
|
#!/bin/csh -f
# $OpenBSD: maketars,v 1.12 2000/04/26 02:11:54 deraadt Exp $
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}.tgz
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}.tgz
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}.tgz
echo "done."
|