xenocara/distrib/sets/makexetc
ajacoutot 3202498a1b /usr/share/sysmerge -> /var/sysmerge
requested by several
discussed with deraadt@
2015-08-24 10:41:21 +00:00

16 lines
338 B
Bash
Executable File

#!/bin/sh
# $OpenBSD: makexetc,v 1.2 2015/08/24 10:41:21 ajacoutot Exp $
pwd=`pwd`
listsdir=`pwd`/lists
tardir=$DESTDIR/var/sysmerge
TMP=`mktemp /tmp/_makexetc.XXXXXXXXXX` || exit 1
trap 'rm -f $TMP' 0 1 15
cd ${DESTDIR:=/}
(cd $pwd; sh gensetlist xetc) | sort >> $TMP
pax -w -d < $TMP | gzip -9 > ${tardir}/xetc.tgz
echo "done."