aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/.gitignore3
-rw-r--r--applets/applet_tables.c9
-rwxr-xr-xapplets/usage_compressed2
3 files changed, 14 insertions, 0 deletions
diff --git a/applets/.gitignore b/applets/.gitignore
index 459938d67..970bb90a9 100644
--- a/applets/.gitignore
+++ b/applets/.gitignore
@@ -1,3 +1,6 @@
1/applet_tables 1/applet_tables
2/usage 2/usage
3/usage_pod 3/usage_pod
4/applet_tables.exe
5/usage.exe
6/usage_pod.exe
diff --git a/applets/applet_tables.c b/applets/applet_tables.c
index 66ef7e4ac..fe26a5109 100644
--- a/applets/applet_tables.c
+++ b/applets/applet_tables.c
@@ -103,6 +103,9 @@ int main(int argc, char **argv)
103 if (i < 0) 103 if (i < 0)
104 return 1; 104 return 1;
105 dup2(i, 1); 105 dup2(i, 1);
106#ifdef __MINGW32__
107 close(i);
108#endif
106 109
107 /* Keep in sync with include/busybox.h! */ 110 /* Keep in sync with include/busybox.h! */
108 111
@@ -236,8 +239,14 @@ int main(int argc, char **argv)
236 239
237 if (fclose(stdout)) 240 if (fclose(stdout))
238 return 1; 241 return 1;
242#ifdef __MINGW32__
243 unlink(argv[1]);
244#endif
239 if (rename(tmp1, argv[1])) 245 if (rename(tmp1, argv[1]))
240 return 1; 246 return 1;
247#ifdef __MINGW32__
248 unlink(argv[2]);
249#endif
241 if (rename(tmp2, argv[2])) 250 if (rename(tmp2, argv[2]))
242 return 1; 251 return 1;
243 return 0; 252 return 0;
diff --git a/applets/usage_compressed b/applets/usage_compressed
index 36fc2a007..94d70f33b 100755
--- a/applets/usage_compressed
+++ b/applets/usage_compressed
@@ -16,6 +16,7 @@ if test $? != 0; then
16 exit 1 16 exit 1
17fi 17fi
18 18
19(
19exec >"$target.$$" 20exec >"$target.$$"
20 21
21echo '#define UNPACKED_USAGE "" \' 22echo '#define UNPACKED_USAGE "" \'
@@ -58,5 +59,6 @@ echo '#define PACKED_USAGE \'
58 -e 's/\(...\)/0\1,/g' \ 59 -e 's/\(...\)/0\1,/g' \
59 -e 's/$/ \\/' 60 -e 's/$/ \\/'
60echo '' 61echo ''
62)
61 63
62mv -- "$target.$$" "$target" 64mv -- "$target.$$" "$target"