summaryrefslogtreecommitdiff
path: root/distrib/sets/makexetc
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-08-28 17:08:34 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-08-28 17:08:34 +0000
commit093f0c21d988860bab6497db0f78faa856e1c78a (patch)
treefd22a5b5bbadc45f7e79754fa45a65805e2f939c /distrib/sets/makexetc
parentcb5d3fed6f051015d67342cc6a9fc6f5116a8080 (diff)
Move xetc set to xbase like etc in base. ok and a tweak by ajacoutot@
There are still some issues, they will be fixed in tree.
Diffstat (limited to 'distrib/sets/makexetc')
-rwxr-xr-xdistrib/sets/makexetc15
1 files changed, 15 insertions, 0 deletions
diff --git a/distrib/sets/makexetc b/distrib/sets/makexetc
new file mode 100755
index 000000000..c854d73a0
--- /dev/null
+++ b/distrib/sets/makexetc
@@ -0,0 +1,15 @@
+#!/bin/sh
+# $OpenBSD: makexetc,v 1.1 2014/08/28 17:08:33 matthieu Exp $
+
+pwd=`pwd`
+listsdir=`pwd`/lists
+tardir=$DESTDIR/usr/share/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."