Re: [PATCH] More Configure.help fixes

2001-01-08 Thread Paul Gortmaker

Configure.help also has help text for some 35 CONFIG_ options that
have since been removed from the config.in files.  Here is a little
script to prune out those orphan entries (it is only 1/10th the size
of the resulting diff, and its the gift that keeps on giving)

It tells you how many CONFIG options exist that don't yet have help text
as an added bonus bit of trivia. 

Paul.

8<-cut here--8<-
#!/bin/sh
# Check Documentation/Configure.help - define_bool/int entries aren't seen
# by the end user and don't need help entries. Create ed script to prune out
# orphans and execute it.   Paul Gortmaker 01/2001.

if [ ! -r Documentation/Configure.help ]; then
echo Cant read or find Documentation/Configure.help
exit
fi

echo -ne '\nTotal number of orphan config help entries: '
FILES=`find . -name [cC]onfig.in`

grep '^CONFIG_[0-9A-Za-z_]' Documentation/Configure.help|\
sort|uniq>/tmp/tmp-help.$$

# Tab and space inside [  ]
cat $FILES|grep -v define_| \
sed 's/.*[  ]\(CONFIG_[A-Za-z0-9_]\+\)[ ]*.*$/\1/;t;d'|\
sort|uniq>/tmp/tmp-opt.$$

diff -u /tmp/tmp-opt.$$ /tmp/tmp-help.$$|\
grep '^\+CONFIG_'|sed 's/^\+//'>/tmp/tmp-orph.$$

OCOUNT=`wc -l < /tmp/tmp-orph.$$`
echo $OCOUNT

echo -ne '\nTotal number of config options without any help text: '
diff -u /tmp/tmp-help.$$ /tmp/tmp-opt.$$|grep '^\+'|wc -l

if [ $OCOUNT -eq 0 ];then
exit 0
fi

echo -ne '\nCopy originial: '
mv -vf Documentation/Configure.help Documentation/Configure.help~ 

echo "ed -s Documentation/Configure.help~>/tmp/tmp-ed.$$
echo "'z,/^[A-Za-z0-9#]/-d">>/tmp/tmp-ed.$$
done
echo wq Documentation/Configure.help>>/tmp/tmp-ed.$$
echo EOF>>/tmp/tmp-ed.$$

echo -ne \\nUnleashing ed\(1\) on orphans in Configure.help...
. /tmp/tmp-ed.$$
echo -e done.\\n

# rm -f /tmp/tmp-opt.$$ /tmp/tmp-help.$$ /tmp/tmp-orph.$$ /tmp/tmp-ed.$$
8<-cut here--8<-



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: [PATCH] More Configure.help fixes

2001-01-08 Thread Paul Gortmaker

Configure.help also has help text for some 35 CONFIG_ options that
have since been removed from the config.in files.  Here is a little
script to prune out those orphan entries (it is only 1/10th the size
of the resulting diff, and its the gift that keeps on giving)

It tells you how many CONFIG options exist that don't yet have help text
as an added bonus bit of trivia. 

Paul.

8-cut here--8-
#!/bin/sh
# Check Documentation/Configure.help - define_bool/int entries aren't seen
# by the end user and don't need help entries. Create ed script to prune out
# orphans and execute it.   Paul Gortmaker 01/2001.

if [ ! -r Documentation/Configure.help ]; then
echo Cant read or find Documentation/Configure.help
exit
fi

echo -ne '\nTotal number of orphan config help entries: '
FILES=`find . -name [cC]onfig.in`

grep '^CONFIG_[0-9A-Za-z_]' Documentation/Configure.help|\
sort|uniq/tmp/tmp-help.$$

# Tab and space inside [  ]
cat $FILES|grep -v define_| \
sed 's/.*[  ]\(CONFIG_[A-Za-z0-9_]\+\)[ ]*.*$/\1/;t;d'|\
sort|uniq/tmp/tmp-opt.$$

diff -u /tmp/tmp-opt.$$ /tmp/tmp-help.$$|\
grep '^\+CONFIG_'|sed 's/^\+//'/tmp/tmp-orph.$$

OCOUNT=`wc -l  /tmp/tmp-orph.$$`
echo $OCOUNT

echo -ne '\nTotal number of config options without any help text: '
diff -u /tmp/tmp-help.$$ /tmp/tmp-opt.$$|grep '^\+'|wc -l

if [ $OCOUNT -eq 0 ];then
exit 0
fi

echo -ne '\nCopy originial: '
mv -vf Documentation/Configure.help Documentation/Configure.help~ 

echo "ed -s Documentation/Configure.help~EOF"/tmp/tmp-ed.$$
for i in `cat /tmp/tmp-orph.$$`
do
echo "/$i/;-kz"/tmp/tmp-ed.$$
echo "'z,/^[A-Za-z0-9#]/-d"/tmp/tmp-ed.$$
done
echo wq Documentation/Configure.help/tmp/tmp-ed.$$
echo EOF/tmp/tmp-ed.$$

echo -ne \\nUnleashing ed\(1\) on orphans in Configure.help...
. /tmp/tmp-ed.$$
echo -e done.\\n

# rm -f /tmp/tmp-opt.$$ /tmp/tmp-help.$$ /tmp/tmp-orph.$$ /tmp/tmp-ed.$$
8-cut here--8-



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: [PATCH] More Configure.help fixes

2001-01-07 Thread Jeremy M. Dolan

As per usual, when sending a mail with an attachment, I forgot to
attach it after I :wq'd.

-- 
Jeremy M. Dolan <[EMAIL PROTECTED]>
OpenPGP key = http://turbogeek.org/openpgp-key
OpenPGP fingerprint = 494C 7A6E 19FB 026A 1F52  E0D5 5C5D 6228 DC43 3DEE


diff -rub 2.4.0/Documentation/Configure.help linux/Documentation/Configure.help
--- 2.4.0/Documentation/Configure.help  Fri Jan  5 09:19:30 2001
+++ linux/Documentation/Configure.help  Sun Jan  7 22:13:09 2001
@@ -1,7 +1,7 @@
 # Maintained by Axel Boldt ([EMAIL PROTECTED])
 #
 # This version of the Linux kernel configuration help texts
-# corresponds to the kernel versions 2.3.x.
+# corresponds to the kernel versions 2.4.x.
 #
 # Translations of this file available on the WWW:
 #
@@ -13,8 +13,10 @@
 # http://www.traduc.org/kernelfr
 #   - Spanish, by Carlos Perelló Marín ([EMAIL PROTECTED]), at
 # http://visar.csustan.edu/~carlos/
+# XXX: Site has moved, new location has no Configure.help trans.
 #   - Italian, by Alessandro Rubini ([EMAIL PROTECTED]), at
 # ftp://ftp-pavia1.linux.it/pub/linux/Configure.help
+# XXX: ftp-pavia1.linux.it: Non-existent host/domain
 #   - Polish, by Cezar Cichocki ([EMAIL PROTECTED]), at
 # http://www.cs.net.pl/~cezar/Kernel
 #   - German, by SuSE, at http://www.suse.de/~ke/kernel . This patch
@@ -113,8 +115,8 @@
   Management" code will be disabled if you say Y here.
 
   See also the files Documentation/smp.tex, Documentation/smp.txt,
-  Documentation/i386/IO-APIC.txt, Documentation/nmi_watchdog.txt and the 
-  SMP-FAQ on the WWW at http://www.irisa.fr/prive/mentre/smp-faq/ .
+  Documentation/i386/IO-APIC.txt, Documentation/nmi_watchdog.txt and
+  the SMP-FAQ on the WWW at http://www.irisa.fr/prive/mentre/smp-faq/
   
   If you don't know what to do here, say N.
   
@@ -1514,7 +1516,7 @@
 CONFIG_RAID15_DANGEROUS
   This new RAID1/RAID5 code has been freshly merged, and has not seen
   enough testing yet. While there are no known bugs in it, it might
-  destroy your filesystems, eat your data and start World War III.
+  destroy your file systems, eat your data and start World War III.
   You have been warned.
 
   If unsure, say N.
@@ -1879,8 +1881,8 @@
 
 MAC address match support
 CONFIG_IP_NF_MATCH_MAC
-  mac matching allows you to match packets based on the source
-  ethernet address of the packet.
+  MAC matching allows you to match packets based on the source
+  Ethernet address of the packet.
 
   If you want to compile it as a module, say M here and read
   Documentation/modules.txt.  If unsure, say `N'.
@@ -4175,7 +4177,7 @@
   packets with different FWMARK ("firewalling mark") values
   (see ipchains(8), "-m" argument).
 
-Appletalk interfaces support
+AppleTalk interfaces support
 CONFIG_APPLETALK
   AppleTalk is the way Apple computers speak to each other on a
   network. If your Linux box is connected to such a network and you
@@ -4790,7 +4792,7 @@
 
 Routing messages
 CONFIG_RTNETLINK
-  If you say Y here, userspace programs can receive some network
+  If you say Y here, user space programs can receive some network
   related routing information over the netlink. 'rtmon', supplied
   with the iproute2 package (ftp://ftp.inr.ac.ru), can read and
   interpret this data.  Information sent to the kernel over this link
@@ -6880,7 +6882,7 @@
   PPP (Point to Point Protocol) is a newer and better SLIP. It serves
   the same purpose: sending Internet traffic over telephone (and other
   serial) lines. Ask your access provider if they support it, because
-  otherwise you can't use it; most internet access providers these
+  otherwise you can't use it; most Internet access providers these
   days support PPP rather than SLIP.
 
   To use PPP, you need an additional program called pppd as described
@@ -9883,7 +9885,7 @@
 Memory Technology Device (MTD) support
 CONFIG_MTD
   Memory Technology Devices are flash, RAM and similar chips, often
-  used for solid state filesystems on embedded devices. This option
+  used for solid state file systems on embedded devices. This option
   will provide the generic support for MTD drivers to register
   themselves with the kernel and for potential users of MTD devices
   to enumerate the devices which are present and obtain a handle on
@@ -9900,14 +9902,14 @@
   This provides an MTD device driver for the M-Systems DiskOnChip
   2000 devices. If you use this, you probably also want the NFTL
   'NAND Flash Translation Layer' below, which is used to emulate
-  a block device by using a kind of filesystem on the flash chips.
+  a block device by using a kind of file system on the flash chips.
 
 M-Systems Disk-On-Chip Millennium support
 CONFIG_MTD_DOC2001
   This provides an MTD device driver for the M-Systems DiskOnChip
   Millennium devices. If you use this, you probably also want the
   NFTL 'NAND Flash Translation Layer' below, which is used to emulate
-  a block device by using a kind of filesystem on the flash chips.
+  a block device by using a kind of file 

[PATCH] More Configure.help fixes

2001-01-07 Thread Jeremy M. Dolan

Dag Wieers caught all the double word's in Configure.help (from the
looks of the patch we're quite a bunch of stutterers), here's another
patch that catches mainly some combined words, a '2.3' -> '2.4', and
inproper capitalizations.

Also, two of the translation's for Configure.help have stale URL's...
I've XXX'd them, and sent a mail to the addresses for the maintainers
of the Spanish and Italian translation to see if there is a new URL.

The patch applies to 2.4.0 clean and to -ac4 with a bunch of offset
warnings, but manages to match all the hunks. (go, patch!)

-- 
Jeremy M. Dolan <[EMAIL PROTECTED]>
OpenPGP key = http://turbogeek.org/openpgp-key
OpenPGP fingerprint = 494C 7A6E 19FB 026A 1F52  E0D5 5C5D 6228 DC43 3DEE
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



[PATCH] More Configure.help fixes

2001-01-07 Thread Jeremy M. Dolan

Dag Wieers caught all the double word's in Configure.help (from the
looks of the patch we're quite a bunch of stutterers), here's another
patch that catches mainly some combined words, a '2.3' - '2.4', and
inproper capitalizations.

Also, two of the translation's for Configure.help have stale URL's...
I've XXX'd them, and sent a mail to the addresses for the maintainers
of the Spanish and Italian translation to see if there is a new URL.

The patch applies to 2.4.0 clean and to -ac4 with a bunch of offset
warnings, but manages to match all the hunks. (go, patch!)

-- 
Jeremy M. Dolan [EMAIL PROTECTED]
OpenPGP key = http://turbogeek.org/openpgp-key
OpenPGP fingerprint = 494C 7A6E 19FB 026A 1F52  E0D5 5C5D 6228 DC43 3DEE
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: [PATCH] More Configure.help fixes

2001-01-07 Thread Jeremy M. Dolan

As per usual, when sending a mail with an attachment, I forgot to
attach it after I :wq'd.

-- 
Jeremy M. Dolan [EMAIL PROTECTED]
OpenPGP key = http://turbogeek.org/openpgp-key
OpenPGP fingerprint = 494C 7A6E 19FB 026A 1F52  E0D5 5C5D 6228 DC43 3DEE


diff -rub 2.4.0/Documentation/Configure.help linux/Documentation/Configure.help
--- 2.4.0/Documentation/Configure.help  Fri Jan  5 09:19:30 2001
+++ linux/Documentation/Configure.help  Sun Jan  7 22:13:09 2001
@@ -1,7 +1,7 @@
 # Maintained by Axel Boldt ([EMAIL PROTECTED])
 #
 # This version of the Linux kernel configuration help texts
-# corresponds to the kernel versions 2.3.x.
+# corresponds to the kernel versions 2.4.x.
 #
 # Translations of this file available on the WWW:
 #
@@ -13,8 +13,10 @@
 # http://www.traduc.org/kernelfr
 #   - Spanish, by Carlos Perell Marn ([EMAIL PROTECTED]), at
 # http://visar.csustan.edu/~carlos/
+# XXX: Site has moved, new location has no Configure.help trans.
 #   - Italian, by Alessandro Rubini ([EMAIL PROTECTED]), at
 # ftp://ftp-pavia1.linux.it/pub/linux/Configure.help
+# XXX: ftp-pavia1.linux.it: Non-existent host/domain
 #   - Polish, by Cezar Cichocki ([EMAIL PROTECTED]), at
 # http://www.cs.net.pl/~cezar/Kernel
 #   - German, by SuSE, at http://www.suse.de/~ke/kernel . This patch
@@ -113,8 +115,8 @@
   Management" code will be disabled if you say Y here.
 
   See also the files Documentation/smp.tex, Documentation/smp.txt,
-  Documentation/i386/IO-APIC.txt, Documentation/nmi_watchdog.txt and the 
-  SMP-FAQ on the WWW at http://www.irisa.fr/prive/mentre/smp-faq/ .
+  Documentation/i386/IO-APIC.txt, Documentation/nmi_watchdog.txt and
+  the SMP-FAQ on the WWW at http://www.irisa.fr/prive/mentre/smp-faq/
   
   If you don't know what to do here, say N.
   
@@ -1514,7 +1516,7 @@
 CONFIG_RAID15_DANGEROUS
   This new RAID1/RAID5 code has been freshly merged, and has not seen
   enough testing yet. While there are no known bugs in it, it might
-  destroy your filesystems, eat your data and start World War III.
+  destroy your file systems, eat your data and start World War III.
   You have been warned.
 
   If unsure, say N.
@@ -1879,8 +1881,8 @@
 
 MAC address match support
 CONFIG_IP_NF_MATCH_MAC
-  mac matching allows you to match packets based on the source
-  ethernet address of the packet.
+  MAC matching allows you to match packets based on the source
+  Ethernet address of the packet.
 
   If you want to compile it as a module, say M here and read
   Documentation/modules.txt.  If unsure, say `N'.
@@ -4175,7 +4177,7 @@
   packets with different FWMARK ("firewalling mark") values
   (see ipchains(8), "-m" argument).
 
-Appletalk interfaces support
+AppleTalk interfaces support
 CONFIG_APPLETALK
   AppleTalk is the way Apple computers speak to each other on a
   network. If your Linux box is connected to such a network and you
@@ -4790,7 +4792,7 @@
 
 Routing messages
 CONFIG_RTNETLINK
-  If you say Y here, userspace programs can receive some network
+  If you say Y here, user space programs can receive some network
   related routing information over the netlink. 'rtmon', supplied
   with the iproute2 package (ftp://ftp.inr.ac.ru), can read and
   interpret this data.  Information sent to the kernel over this link
@@ -6880,7 +6882,7 @@
   PPP (Point to Point Protocol) is a newer and better SLIP. It serves
   the same purpose: sending Internet traffic over telephone (and other
   serial) lines. Ask your access provider if they support it, because
-  otherwise you can't use it; most internet access providers these
+  otherwise you can't use it; most Internet access providers these
   days support PPP rather than SLIP.
 
   To use PPP, you need an additional program called pppd as described
@@ -9883,7 +9885,7 @@
 Memory Technology Device (MTD) support
 CONFIG_MTD
   Memory Technology Devices are flash, RAM and similar chips, often
-  used for solid state filesystems on embedded devices. This option
+  used for solid state file systems on embedded devices. This option
   will provide the generic support for MTD drivers to register
   themselves with the kernel and for potential users of MTD devices
   to enumerate the devices which are present and obtain a handle on
@@ -9900,14 +9902,14 @@
   This provides an MTD device driver for the M-Systems DiskOnChip
   2000 devices. If you use this, you probably also want the NFTL
   'NAND Flash Translation Layer' below, which is used to emulate
-  a block device by using a kind of filesystem on the flash chips.
+  a block device by using a kind of file system on the flash chips.
 
 M-Systems Disk-On-Chip Millennium support
 CONFIG_MTD_DOC2001
   This provides an MTD device driver for the M-Systems DiskOnChip
   Millennium devices. If you use this, you probably also want the
   NFTL 'NAND Flash Translation Layer' below, which is used to emulate
-  a block device by using a kind of filesystem on the flash chips.
+  a block device by using a kind of file