blob: 32ed1b9df7a9d92481f5ec2fb836873539f86af9 (
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
|
#!/bin/csh -f
# $OpenBSD: maketars,v 1.13 2001/12/25 01:30:22 deraadt Exp $
RELEASE=$1
if [ "X${RELEASE}" == "X" ]; then
echo "Usage: `basename $0` <OSREVISION>"
exit 1
fi
if [ "X${RELEASEDIR}" = "X" ]; then
echo RELEASEDIR must be set
exit 1
fi
if [ "X${DESTDIR}" = "X" ]; then
echo DESTDIR must be set
exit 1
fi
arch=`machine`
lists=`pwd`/lists
tardir=$RELEASEDIR
fsdir=$DESTDIR
cd $fsdir
for i in base comp etc game man misc; do
echo -n "$i: "
cat ${lists}/$i/mi ${lists}/$i/md.${arch} | sort | \
pax -w -d | gzip -9 > ${tardir}/$i${RELEASE}.tgz
echo "done."
done
|