summaryrefslogtreecommitdiff
path: root/distrib/sets/maketars
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-27 11:26:07 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-27 11:26:07 +0000
commitabb30277ff0bbd258cfb54ec36f9ad039a7d2b9c (patch)
treec2f4dae1f0663c60f6ad4a231e120d8092c2a414 /distrib/sets/maketars
parentaef8d05902faf8bb5b00faf643b2fee1306e557e (diff)
Bring over distrib from XF4
Diffstat (limited to 'distrib/sets/maketars')
-rw-r--r--distrib/sets/maketars40
1 files changed, 40 insertions, 0 deletions
diff --git a/distrib/sets/maketars b/distrib/sets/maketars
new file mode 100644
index 000000000..73bb0f3af
--- /dev/null
+++ b/distrib/sets/maketars
@@ -0,0 +1,40 @@
+#!/bin/sh
+# $OpenBSD: maketars,v 1.1 2006/11/27 11:25:45 matthieu Exp $
+
+# xy
+RELEASE=$1
+Release=$2
+# x.y
+
+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
+
+lists=`sh ./genlists $arch`
+
+cd $DESTDIR
+
+for setname in $lists; do
+ echo -n "${setname}: "
+ (cd $pwd; sh gensetlist $setname $Release) | sort | \
+ pax -w -d | gzip -9 > ${tardir}/${setname}${RELEASE}.tgz
+ echo "done."
+done
+
+echo "done."