diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-05-03 03:19:06 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-05-03 03:19:06 +0000 |
commit | 0a704e8ff62a7fdcd08f1fcc89ca66133da2db07 (patch) | |
tree | 6c6b2f7615f63ddf6f209c23ce02424b58346651 | |
parent | a19bc64653aab46f6335ed6aa7d7d70ff7b5fb0b (diff) | |
download | busybox-w32-0a704e8ff62a7fdcd08f1fcc89ca66133da2db07.tar.gz busybox-w32-0a704e8ff62a7fdcd08f1fcc89ca66133da2db07.tar.bz2 busybox-w32-0a704e8ff62a7fdcd08f1fcc89ca66133da2db07.zip |
Remove BB_FEATURE_REMOUNT (small, and should always be present)
and fix documentation dependancy checks, so it is only built when
it should be built.
-Erik
-rw-r--r-- | Makefile | 24 | ||||
-rw-r--r-- | busybox.def.h | 9 | ||||
-rw-r--r-- | docs/Makefile | 21 | ||||
-rw-r--r-- | umount.c | 8 | ||||
-rw-r--r-- | util-linux/umount.c | 8 |
5 files changed, 20 insertions, 50 deletions
@@ -99,12 +99,28 @@ ifdef BB_INIT_SCRIPT | |||
99 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' | 99 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' |
100 | endif | 100 | endif |
101 | 101 | ||
102 | all: busybox busybox.links | 102 | all: busybox busybox.links doc |
103 | |||
104 | doc: BusyBox.txt BusyBox.1 BusyBox.html | ||
105 | |||
106 | BusyBox.txt: docs/busybox.pod | ||
107 | @echo | ||
108 | @echo BusyBox Documentation | ||
109 | @echo | ||
110 | pod2text docs/busybox.pod > BusyBox.txt | ||
111 | |||
112 | BusyBox.1: docs/busybox.pod | ||
113 | pod2man --center=BusyBox --release="version $(VERSION)" docs/busybox.pod > BusyBox.1 | ||
114 | |||
115 | BusyBox.html: docs/busybox.pod | ||
116 | pod2html docs/busybox.pod > BusyBox.html | ||
117 | - rm -f pod2html* | ||
118 | |||
119 | clean: | ||
103 | 120 | ||
104 | busybox: $(OBJECTS) | 121 | busybox: $(OBJECTS) |
105 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) | 122 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) |
106 | $(STRIP) | 123 | $(STRIP) |
107 | ( cd docs ; $(MAKE) ) | ||
108 | 124 | ||
109 | busybox.links: busybox.def.h | 125 | busybox.links: busybox.def.h |
110 | - ./busybox.mkll | sort >$@ | 126 | - ./busybox.mkll | sort >$@ |
@@ -119,6 +135,7 @@ clean: | |||
119 | - rm -f busybox.links *~ *.o core | 135 | - rm -f busybox.links *~ *.o core |
120 | - rm -rf _install | 136 | - rm -rf _install |
121 | - cd tests && $(MAKE) clean | 137 | - cd tests && $(MAKE) clean |
138 | - rm -f BusyBox.html BusyBox.1 BusyBox.txt pod2html* | ||
122 | 139 | ||
123 | distclean: clean | 140 | distclean: clean |
124 | - rm -f busybox | 141 | - rm -f busybox |
@@ -127,8 +144,7 @@ distclean: clean | |||
127 | install: busybox busybox.links | 144 | install: busybox busybox.links |
128 | ./install.sh $(PREFIX) | 145 | ./install.sh $(PREFIX) |
129 | 146 | ||
130 | dist release: distclean | 147 | dist release: distclean doc |
131 | ( cd docs ; $(MAKE) ) | ||
132 | cd ..; \ | 148 | cd ..; \ |
133 | rm -rf busybox-$(VERSION); \ | 149 | rm -rf busybox-$(VERSION); \ |
134 | cp -a busybox busybox-$(VERSION); \ | 150 | cp -a busybox busybox-$(VERSION); \ |
diff --git a/busybox.def.h b/busybox.def.h index 5187bc506..c5b7de900 100644 --- a/busybox.def.h +++ b/busybox.def.h | |||
@@ -181,9 +181,6 @@ | |||
181 | // Enable support for a real /etc/mtab file instead of /proc/mounts | 181 | // Enable support for a real /etc/mtab file instead of /proc/mounts |
182 | //#define BB_FEATURE_MOUNT_MTAB_SUPPORT | 182 | //#define BB_FEATURE_MOUNT_MTAB_SUPPORT |
183 | // | 183 | // |
184 | // Enable support for remounting filesystems | ||
185 | #define BB_FEATURE_REMOUNT | ||
186 | // | ||
187 | // Enable support for mounting remote NFS volumes | 184 | // Enable support for mounting remote NFS volumes |
188 | //#define BB_FEATURE_NFSMOUNT | 185 | //#define BB_FEATURE_NFSMOUNT |
189 | // | 186 | // |
@@ -236,12 +233,6 @@ | |||
236 | #endif | 233 | #endif |
237 | #endif | 234 | #endif |
238 | // | 235 | // |
239 | #ifdef BB_INIT | ||
240 | #ifndef BB_FEATURE_REMOUNT | ||
241 | #define BB_FEATURE_REMOUNT | ||
242 | #endif | ||
243 | #endif | ||
244 | // | ||
245 | #ifdef BB_FEATURE_LINUXRC | 236 | #ifdef BB_FEATURE_LINUXRC |
246 | #ifndef BB_INIT | 237 | #ifndef BB_INIT |
247 | #define BB_INIT | 238 | #define BB_INIT |
diff --git a/docs/Makefile b/docs/Makefile deleted file mode 100644 index 472d29e84..000000000 --- a/docs/Makefile +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | # busybox/docs/Makefile - Create the documentation | ||
2 | # ------------------------ | ||
3 | # Copyright (C) 2000 Erik Andersen <andersee@debian.org> GPL | ||
4 | |||
5 | all: clean doc | ||
6 | |||
7 | doc: | ||
8 | @echo | ||
9 | @echo BusyBox Documentation | ||
10 | @echo | ||
11 | pod2html busybox.pod > ../BusyBox.html | ||
12 | @rm pod2html-* | ||
13 | pod2man --center=BusyBox --release="version $(VERSION)" busybox.pod > ../BusyBox.1 | ||
14 | pod2text busybox.pod > ../BusyBox.txt | ||
15 | @rm -f pod2html* | ||
16 | |||
17 | clean: | ||
18 | @rm -f ../BusyBox.html ../BusyBox.1 ../BusyBox.txt pod2html* | ||
19 | |||
20 | distclean: clean | ||
21 | |||
@@ -37,9 +37,7 @@ static const char umount_usage[] = | |||
37 | #else | 37 | #else |
38 | "\n" | 38 | "\n" |
39 | #endif | 39 | #endif |
40 | #ifdef BB_FEATURE_REMOUNT | ||
41 | "\t-r:\tTry to remount devices as read-only if mount is busy\n" | 40 | "\t-r:\tTry to remount devices as read-only if mount is busy\n" |
42 | #endif | ||
43 | #if defined BB_FEATURE_MOUNT_LOOP | 41 | #if defined BB_FEATURE_MOUNT_LOOP |
44 | "\t-f:\tDo not free loop device (if a loop device has been used)\n" | 42 | "\t-f:\tDo not free loop device (if a loop device has been used)\n" |
45 | #endif | 43 | #endif |
@@ -60,9 +58,7 @@ static int freeLoop = TRUE; | |||
60 | #endif | 58 | #endif |
61 | static int useMtab = TRUE; | 59 | static int useMtab = TRUE; |
62 | static int umountAll = FALSE; | 60 | static int umountAll = FALSE; |
63 | #if defined BB_FEATURE_REMOUNT | ||
64 | static int doRemount = FALSE; | 61 | static int doRemount = FALSE; |
65 | #endif | ||
66 | extern const char mtab_file[]; /* Defined in utility.c */ | 62 | extern const char mtab_file[]; /* Defined in utility.c */ |
67 | 63 | ||
68 | 64 | ||
@@ -180,7 +176,6 @@ static int do_umount(const char *name, int useMtab) | |||
180 | /* this was a loop device, delete it */ | 176 | /* this was a loop device, delete it */ |
181 | del_loop(blockDevice); | 177 | del_loop(blockDevice); |
182 | #endif | 178 | #endif |
183 | #if defined BB_FEATURE_REMOUNT | ||
184 | if (status != 0 && doRemount == TRUE && errno == EBUSY) { | 179 | if (status != 0 && doRemount == TRUE && errno == EBUSY) { |
185 | status = mount(blockDevice, name, NULL, | 180 | status = mount(blockDevice, name, NULL, |
186 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); | 181 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); |
@@ -193,7 +188,6 @@ static int do_umount(const char *name, int useMtab) | |||
193 | blockDevice); | 188 | blockDevice); |
194 | } | 189 | } |
195 | } | 190 | } |
196 | #endif | ||
197 | if (status == 0) { | 191 | if (status == 0) { |
198 | #if defined BB_MTAB | 192 | #if defined BB_MTAB |
199 | if (useMtab == TRUE) | 193 | if (useMtab == TRUE) |
@@ -255,11 +249,9 @@ extern int umount_main(int argc, char **argv) | |||
255 | useMtab = FALSE; | 249 | useMtab = FALSE; |
256 | break; | 250 | break; |
257 | #endif | 251 | #endif |
258 | #ifdef BB_FEATURE_REMOUNT | ||
259 | case 'r': | 252 | case 'r': |
260 | doRemount = TRUE; | 253 | doRemount = TRUE; |
261 | break; | 254 | break; |
262 | #endif | ||
263 | case 'v': | 255 | case 'v': |
264 | break; /* ignore -v */ | 256 | break; /* ignore -v */ |
265 | default: | 257 | default: |
diff --git a/util-linux/umount.c b/util-linux/umount.c index 92eb0a61a..ad7de2d20 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -37,9 +37,7 @@ static const char umount_usage[] = | |||
37 | #else | 37 | #else |
38 | "\n" | 38 | "\n" |
39 | #endif | 39 | #endif |
40 | #ifdef BB_FEATURE_REMOUNT | ||
41 | "\t-r:\tTry to remount devices as read-only if mount is busy\n" | 40 | "\t-r:\tTry to remount devices as read-only if mount is busy\n" |
42 | #endif | ||
43 | #if defined BB_FEATURE_MOUNT_LOOP | 41 | #if defined BB_FEATURE_MOUNT_LOOP |
44 | "\t-f:\tDo not free loop device (if a loop device has been used)\n" | 42 | "\t-f:\tDo not free loop device (if a loop device has been used)\n" |
45 | #endif | 43 | #endif |
@@ -60,9 +58,7 @@ static int freeLoop = TRUE; | |||
60 | #endif | 58 | #endif |
61 | static int useMtab = TRUE; | 59 | static int useMtab = TRUE; |
62 | static int umountAll = FALSE; | 60 | static int umountAll = FALSE; |
63 | #if defined BB_FEATURE_REMOUNT | ||
64 | static int doRemount = FALSE; | 61 | static int doRemount = FALSE; |
65 | #endif | ||
66 | extern const char mtab_file[]; /* Defined in utility.c */ | 62 | extern const char mtab_file[]; /* Defined in utility.c */ |
67 | 63 | ||
68 | 64 | ||
@@ -180,7 +176,6 @@ static int do_umount(const char *name, int useMtab) | |||
180 | /* this was a loop device, delete it */ | 176 | /* this was a loop device, delete it */ |
181 | del_loop(blockDevice); | 177 | del_loop(blockDevice); |
182 | #endif | 178 | #endif |
183 | #if defined BB_FEATURE_REMOUNT | ||
184 | if (status != 0 && doRemount == TRUE && errno == EBUSY) { | 179 | if (status != 0 && doRemount == TRUE && errno == EBUSY) { |
185 | status = mount(blockDevice, name, NULL, | 180 | status = mount(blockDevice, name, NULL, |
186 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); | 181 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); |
@@ -193,7 +188,6 @@ static int do_umount(const char *name, int useMtab) | |||
193 | blockDevice); | 188 | blockDevice); |
194 | } | 189 | } |
195 | } | 190 | } |
196 | #endif | ||
197 | if (status == 0) { | 191 | if (status == 0) { |
198 | #if defined BB_MTAB | 192 | #if defined BB_MTAB |
199 | if (useMtab == TRUE) | 193 | if (useMtab == TRUE) |
@@ -255,11 +249,9 @@ extern int umount_main(int argc, char **argv) | |||
255 | useMtab = FALSE; | 249 | useMtab = FALSE; |
256 | break; | 250 | break; |
257 | #endif | 251 | #endif |
258 | #ifdef BB_FEATURE_REMOUNT | ||
259 | case 'r': | 252 | case 'r': |
260 | doRemount = TRUE; | 253 | doRemount = TRUE; |
261 | break; | 254 | break; |
262 | #endif | ||
263 | case 'v': | 255 | case 'v': |
264 | break; /* ignore -v */ | 256 | break; /* ignore -v */ |
265 | default: | 257 | default: |