aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall/dist.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-05-08 21:39:40 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-05-08 21:39:40 +0000
commitf9a1c2dee2a8d838307d572570aac3e589e05abb (patch)
treebbc7db4913e184339a9fef242727b484f56afaa6 /release/sysinstall/dist.c
parent255aed5d9770e9888a3935a4e8985c0c2447f2ba (diff)
downloadsrc-f9a1c2dee2a8d838307d572570aac3e589e05abb.tar.gz
src-f9a1c2dee2a8d838307d572570aac3e589e05abb.zip
Sync these up so that they'll get into my CVS tree at home, where I'll continue
working on the distribution extract stuff.
Notes
Notes: svn path=/head/; revision=8363
Diffstat (limited to 'release/sysinstall/dist.c')
-rw-r--r--release/sysinstall/dist.c43
1 files changed, 42 insertions, 1 deletions
diff --git a/release/sysinstall/dist.c b/release/sysinstall/dist.c
index 2733bb29d65b..90b592dc9035 100644
--- a/release/sysinstall/dist.c
+++ b/release/sysinstall/dist.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: install.c,v 1.5 1995/05/04 03:51:16 jkh Exp $
+ * $Id: dist.c,v 1.1 1995/05/04 19:48:10 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -90,3 +90,44 @@ distSetEverything(char *str)
SrcDists = DIST_SRC_ALL;
return 0;
}
+
+struct {
+ char *my_name;
+ unsigned int my_bit;
+} DistTable[] = {
+{ "bin", DIST_BIN },
+{ "games", DIST_GAMES },
+{ "manpages", DIST_MANPAGES },
+{ "proflibs", DIST_PROFLIBS },
+{ "dict", DIST_DICT },
+{ "src", DIST_SRC },
+{ "des", DIST_DES },
+{ "compat1x", DIST_COMPAT1X },
+{ "xf86311l", DIST_XFREE86 },
+{ NULL, 0 },
+};
+
+Boolean
+dist_extract(char *name)
+{
+ int fd;
+
+ return FALSE;
+}
+
+void
+distExtractAll(void)
+{
+ int i, fd;
+
+ while (Dists) {
+ for (i = 0; DistTable[i].my_name; i++) {
+ if (Dists & DistTable[i].my_bit) {
+ if (dist_extract(DistTable[i].my_name))
+ Dists &= ~DistTable[i].my_bit;
+ else
+ continue;
+ }
+ }
+ }
+}