Remove all of the "depends on TAR" directives and replace them with a
single surrounding if/endif.  Not only does this shorten the Config.in
file, but it fixes the indentation issue.

Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]>

---

  the if/endif directives can be used in a number of places to shorten
Config.in files considerably when you have a feature with many
sub-features, such as with vi and find.

Index: svn/archival/Config.in
===================================================================
--- svn/archival/Config.in      (revision 22843)
+++ svn/archival/Config.in      (working copy)
@@ -167,10 +167,11 @@
          create compressed archives. It's probably the most widely used
          UNIX archive program.

+if TAR
+
 config FEATURE_TAR_CREATE
        bool "Enable archive creation"
        default y
-       depends on TAR
        help
          If you enable this option you'll be able to create
          tar archives using the `-c' option.
@@ -178,7 +179,6 @@
 config FEATURE_TAR_GZIP
        bool "Enable -z option"
        default y
-       depends on TAR
        help
          If you enable this option tar will be able to call gzip,
          when creating or extracting tar gziped archives.
@@ -186,7 +186,6 @@
 config FEATURE_TAR_BZIP2
        bool "Enable -j option to handle .tar.bz2 files"
        default n
-       depends on TAR
        help
          If you enable this option you'll be able to extract
          archives compressed with bzip2.
@@ -194,7 +193,6 @@
 config FEATURE_TAR_LZMA
        bool "Enable -a option to handle .tar.lzma files"
        default n
-       depends on TAR
        help
          If you enable this option you'll be able to extract
          archives compressed with lzma.
@@ -202,7 +200,6 @@
 config FEATURE_TAR_COMPRESS
        bool "Enable -Z option"
        default n
-       depends on TAR
        help
          If you enable this option tar will be able to call uncompress,
          when extracting .tar.Z archives.
@@ -218,7 +215,6 @@
 config FEATURE_TAR_FROM
        bool "Enable -X (exclude from) and -T (include from) options)"
        default n
-       depends on TAR
        help
          If you enable this option you'll be able to specify
          a list of files to include or exclude from an archive.
@@ -226,7 +222,6 @@
 config FEATURE_TAR_OLDGNU_COMPATIBILITY
        bool "Support for old tar header format"
        default N
-       depends on TAR
        help
          This option is required to unpack archives created in
          the old GNU format; help to kill this old format by
@@ -235,7 +230,6 @@
 config FEATURE_TAR_OLDSUN_COMPATIBILITY
        bool "Enable untarring of tarballs with checksums produced by buggy Sun 
tar"
        default N
-       depends on TAR
        help
          This option is required to unpack archives created by some old
          version of Sun's tar (it was calculating checksum using signed 
arithmetic).
@@ -244,7 +238,6 @@
 config FEATURE_TAR_GNU_EXTENSIONS
        bool "Support for GNU tar extensions (long filenames)"
        default y
-       depends on TAR
        help
          With this option busybox supports GNU long filenames and
          linknames.
@@ -252,19 +245,20 @@
 config FEATURE_TAR_LONG_OPTIONS
        bool "Enable long options"
        default n
-       depends on TAR && GETOPT_LONG
+       depends on GETOPT_LONG
        help
          Enable use of long options, increases size by about 400 Bytes

 config FEATURE_TAR_UNAME_GNAME
        bool "Enable use of user and group names"
        default n
-       depends on TAR
        help
          Enables use of user and group names in tar. This affects contents
          listings (-t) and preserving permissions when unpacking (-p).
          +200 bytes.

+endif
+
 config UNCOMPRESS
        bool "uncompress"
        default n

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to