diff options
author | Denis Vlasenko | 2006-10-19 22:12:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-19 22:12:47 +0000 |
commit | b560577cb27a4a15a5e1a77d3ac720d2151d3d60 (patch) | |
tree | a87d7028bb6c8d26ece0236e8d9945f68f03a236 /scripts | |
parent | 52b5eba715b29ed3e52eaa95a51307cacb4d7677 (diff) | |
download | busybox-b560577cb27a4a15a5e1a77d3ac720d2151d3d60.zip busybox-b560577cb27a4a15a5e1a77d3ac720d2151d3d60.tar.gz |
move usage_compressed.h generation into applets/
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild | 6 | ||||
-rw-r--r-- | scripts/usage.c | 17 | ||||
-rwxr-xr-x | scripts/usage_compressed | 19 |
3 files changed, 0 insertions, 42 deletions
diff --git a/scripts/Kbuild b/scripts/Kbuild index 80836cf..83b4232 100644 --- a/scripts/Kbuild +++ b/scripts/Kbuild @@ -3,11 +3,5 @@ # the kernel for the build process. # --------------------------------------------------------------------------- -hostprogs-y += usage - -always := $(hostprogs-y) - # Let clean descend into subdirs subdir- += basic kconfig - -HOSTCFLAGS_usage.o = -I$(srctree)/include diff --git a/scripts/usage.c b/scripts/usage.c deleted file mode 100644 index d888fa9..0000000 --- a/scripts/usage.c +++ /dev/null @@ -1,17 +0,0 @@ -/* vi: set sw=4 ts=4: */ -#include <unistd.h> - -#include "../include/autoconf.h" -#include "../include/busybox.h" - -static const char usage_messages[] = -#define MAKE_USAGE -#include "usage.h" -#include "applets.h" -; - -int main(void) -{ - write(1, usage_messages, sizeof(usage_messages)); - return 0; -} diff --git a/scripts/usage_compressed b/scripts/usage_compressed deleted file mode 100755 index ab164aa..0000000 --- a/scripts/usage_compressed +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -target="$1" -loc="$2" - -test "$target" || exit 1 -test "$loc" || loc=. -test -x "$loc/usage" || exit 1 -test "$SED" || SED=sed - -sz=`"$loc/usage" | wc -c` || exit 1 - -exec >"$target" - -echo 'static const char packed_usage[] = ' -"$loc/usage" | bzip2 -1 | od -v -t x1 \ -| $SED -e 's/^[^ ]*//' -e 's/ \(..\)/\\x\1/g' -e 's/^\(.*\)$/"\1"/' -echo ';' -echo '#define SIZEOF_usage_messages' `expr 0 + $sz` |