Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
split-man
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- #!/usr/bin/perl
- #
- # split-man: create man pages from kernel-doc -man output
- #
- # Author: Tim Waugh <twaugh@redhat.com>
- # Modified by: Christoph Hellwig <hch@infradead.org>
- #
- use strict;
- die "$0: where do I put the results?n" unless ($#ARGV >= 0);
- die "$0: can't create $ARGV[0]: $!n" unless mkdir $ARGV[0], 0777;
- my $state = 0;
- while (<STDIN>) {
- s/&(w+)/\fB1\fP/g; # fix smgl uglinesses
- if (/^.TH "[^"]*" 9 "([^"]*)"/) {
- close OUT unless ($state++ == 0);
- my $fn = "$ARGV[0]/$1.9";
- if (open OUT, ">$fn") {
- print STDERR "creating $fnn";
- } else {
- die "can't open $fn: $!n";
- }
- print OUT $_;
- } elsif ($state != 0) {
- print OUT $_;
- }
- }
- close OUT;