2006-11-27 04:25:45 -07:00
|
|
|
#!/bin/sh
|
2014-08-31 10:52:26 -06:00
|
|
|
# $OpenBSD: maketars,v 1.6 2014/08/31 16:52:26 matthieu Exp $
|
2006-11-27 04:25:45 -07:00
|
|
|
|
|
|
|
# xy
|
|
|
|
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}
|
|
|
|
pwd=`pwd`
|
|
|
|
listsdir=`pwd`/lists
|
|
|
|
tardir=$RELEASEDIR
|
|
|
|
|
2008-12-23 17:15:24 -07:00
|
|
|
TMPDIR=`mktemp -d /tmp/_maketarsx.XXXXXXXXXX` || exit 1
|
|
|
|
trap 'rm -f $TMP1 $TMP2; rmdir $TMPDIR' 0 1 15
|
2007-03-28 14:07:23 -06:00
|
|
|
TMP1=$TMPDIR/one
|
|
|
|
TMP2=$TMPDIR/two
|
|
|
|
|
2006-11-27 04:25:45 -07:00
|
|
|
cd $DESTDIR
|
|
|
|
|
2014-08-31 10:52:26 -06:00
|
|
|
for setname in xbase xfont xserv xshare; do
|
2006-11-27 04:25:45 -07:00
|
|
|
echo -n "${setname}: "
|
2014-05-03 09:18:26 -06:00
|
|
|
(cd $pwd; sh gensetlist $setname) | sort > $TMP1
|
2007-08-05 16:26:02 -06:00
|
|
|
sed -n '/^\.\/usr\/X11R6\/lib\/lib.*\.so\..*/{p;}' $TMP1 > $TMP2
|
|
|
|
sed '/^\.\/usr\/X11R6\/lib\/lib.*\.so\..*/d' $TMP1 >> $TMP2
|
2007-03-28 14:07:23 -06:00
|
|
|
pax -w -d < $TMP2 | gzip -9 > ${tardir}/${setname}${RELEASE}.tgz
|
2006-11-27 04:25:45 -07:00
|
|
|
echo "done."
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "done."
|