Installation of LXR (Linux Cross-Reference) for Source Code Reference Code Reference LXR : 2002512( ), : 1/1
1 3 2 LXR 3 21 LXR 3 22 LXR 221 LXR 3 222 LXR 3 3 23 LXR lxrconf 4 24 241 httpdconf 6 242 htaccess 7 6 25 26 LXR 27 Glimpse 7 9 10 3 LXR 11 31 LXR 32 Identifier 11 12 4 12 5 14 : 2002512( ), : 2/2
1 Linux Cross-Reference (LXR)Hypertext Cross-referencing Tool Function declarations, Data (type) definitions Preprocessor macros Source Code LXR 2 LXR 21 LXR http://lxrlinuxno/ LXR (http://lxrlinuxno/lxr-03targz) 22 LXR 221 LXR LXR Perl (http://wwwperlcom/language/info/softwarehtml) Glimpse (http://webglimpsenet/trial/glimpse-415targz) GlimpseFreetext Search query 222 LXR lxr-03targz tar zxvf lxr-03targz gunzip lxr-03targz ; tar xvf lxr-03tar lxr-03 lxr-03 Makefile PERLBININSTALLPREFIX PERLBINperl INSTALLPREFIXLXR < 1> Makefile PERLBIN=/usr/bin/perl INSTALLPREFIX=/home/httpd/html/lxr < 1> LXR Makefile : 2002512( ), : 3/3
make (/home/httpd/html/lxr)lxr install INSTALLPREFIX 23 LXR lxrconf LXR lxrconf ($(INSTALLPREFIX)/http/lxrconf)LXR < 2>lxrconf # Define typed variable "v", read valueset from file variable: v, Version, [/home/httpd/html/lxr/source/versions], [/home/httpd/html/lxr/source/defversion] # Define typed variable "a" First value is default variable: a, Architecture, (i386, alpha, m68k, mips, ppc, sparc, sparc64) # Define the base url for the LXR files baseurl: http://lxradhoc6antsnet/ # These are the templates for the HTML heading, directory listing and footer, respectively htmlhead: /home/httpd/html/lxr/http/template-head htmltail: /home/httpd/html/lxr/http/template-tail htmldir: /home/httpd/html/lxr/http/template-dir # The source is here sourceroot: /home/httpd/html/lxr/source/$v/linux/ srcrootname: Linux # "#include <fooh>" is mapped to this directory (in the LXR source tree) incprefix: /include # The database files go here dbdir: /home/httpd/html/lxr/source/$v # Glimpse can be found here glimpsebin: /usr/local/bin/glimpse # The power of regexps This is pretty Linux-specific, but quite # useful Tinker with it and see what it does (How's that for documentation?) map: /include/asm[^\/]*/ /include/asm-$a/ map: /arch/[^\/]+/ /arch/$a/ < 2> lxrconf lxrconf LXR CGI Scriptsource, ident, diff, find, search : 2002512( ), : 4/4
lxrconf Symbolic Link, < 3> lxrconf Symbolic Link [root@paul /]# cd /home/httpd/html/lxr/http [root@paul lxr]# ln -s lxrconf sourcelxrconf [root@paul lxr]# ln -s lxrconf difflxrconf [root@paul lxr]# ln -s lxrconf findlxrconf [root@paul lxr]# ln -s lxrconf searchlxrconf [root@paul lxr]# ln -s lxrconf identlxrconf < 3> lxrconf Symbolic Link : 2002512( ), : 5/5
24 241 httpdconf < 4>LXR Apache Server httpdconf LXR Domain Namelxradhoc6antsnet Domain NameName Server httpdconf apachectl restart httpd Apache 2035 ( httpd v Apache ) ServerAdmin paul@etrirekr DocumentRoot "/home/httpd/html" #@added by jaehoon for lxr, 2002/5/12 <Directory /home/httpd/html/lxr> Options All # AllowOverride controls what directives may be placed in htaccess files # It can be "All", "None", or any combination of the keywords: Options FileInfo AuthConfig Limit AllowOverride All </Directory> # AccessFileName: The name of the file to look for in each directory # for access control information See also the AllowOverride directive AccessFileName htaccess # Use name-based virtual hosting NameVirtualHost 129254112193 <VirtualHost 129254112193> ServerAdmin paul@etrirekr DocumentRoot /home/httpd/html/lxr/http ServerName lxradhoc6antsnet ErrorLog logs/lxr-error_log CustomLog logs/lxr-access_log common </VirtualHost> < 4> httpdconf : 2002512( ), : 6/6
242 htaccess LXR CGI Script (source, find, search, ident, diff)lxr (/home/httpd/html/lxr/) /home/httpd/html/lxr/ < 5>htaccess <Files ~ (search source ident diff find)$> SetHandler cgi-script </Files> < 5> httpdconf 25 ReferenceCode/home/httpd/html/lxr/source Code Version /home/httpd/html/lxr/source/versions /home/httpd/html/lxr/ source/defversion, NS2 ns-21b8alxr ns-21b8a< 6> versions ns-21b8a < 6> versions Source Code /home/httpd/html/lxr/source/ ns-21b8a ns- 21b8a linux ns-21b8asource Code < 7> Source Code linuxsymbolic LinkSource Code, LXR freetext search file search Source Code linux Source Code : 2002512( ), : 7/7
[root@paul source]# pwd /home/httpd/html/lxr/source [root@paul source]# ls defversion ns-21b8a versions [root@paul source]# cd ns-21b8a/ [root@paul ns-21b8a]# ls -l total 8 drwxr-xr-x 34 root root 8192 Apr 7 17:56 linux [root@paul ns-21b8a]# ls linux/ ack-reconscc indep-utils rtqueueh ack-reconsh install-sh rttablecc acto-adccc INSTALLWIN32 rttableh < 7> Source Code : 2002512( ), : 8/8
26 LXR LXR Code Reference LXR fileidxxref < 8> genxref Source Code Compile Object Log LXR, make clean make distclean make Source CodeMakefile Cleaning Object Log fileidx 644 genxref, fileidx 640 fileidx LXR chmodfileidx 644 [root@paul ns-21b8a]# pwd /home/httpd/html/lxr/source/ns-21b8a [root@paul ns-21b8a]# /home/httpd/html/lxr/bin/genxref linux/ [root@paul ns-21b8a]# ls -l total 848 -rw-r----- 1 root root 24576 May 12 23:37 fileidx drwxr-xr-x 34 root root 8192 Apr 7 17:56 linux -rw-r--r-- 1 root root 937984 May 12 23:37 xref [root@paul ns-21b8a]# chmod 644 fileidx [root@paul ns-21b8a]# ls -l total 848 -rw-r--r-- 1 root root 24576 May 12 23:37 fileidx drwxr-xr-x 34 root root 8192 Apr 7 17:56 linux -rw-r--r-- 1 root root 937984 May 12 23:37 xref [root@paul ns-21b8a]# < 8> LXR : 2002512( ), : 9/9
27 Glimpse Freetext search Glimpse < 9> H Glimpse -H Glimpse 26 Glimpse 644 chmod < 9> Glimpse 644 [root@paul ns-21b8a]# pwd /home/httpd/html/lxr/source/ns-21b8a [root@paul ns-21b8a]# glimpseindex H linux/ Glimpse-files created here: -rw------- 1 root root 96986 May 12 23:55 glimpse_filenames -rw------- 1 root root 5884 May 12 23:55 glimpse_filenames_index -rw------- 1 root root 0 May 12 23:55 glimpse_filetimes -rw------- 1 root root 493617 May 12 23:55 glimpse_index -rw------- 1 root root 116 May 12 23:55 glimpse_messages -rw------- 1 root root 856 May 12 23:55 glimpse_partitions -rw------- 1 root root 11647 May 12 23:55 glimpse_statistics [root@paul ns-21b8a]# chmod 644 glimpse_* [root@paul ns-21b8a]# ls -al total 1472 drwxr-xr-x 3 root root 4096 May 12 23:55 drwxr-xr-x 3 root root 4096 May 12 21:44 -rw-r--r-- 1 root root 24576 May 12 23:37 fileidx -rw-r--r-- 1 root root 96986 May 12 23:55 glimpse_filenames -rw-r--r-- 1 root root 5884 May 12 23:55 glimpse_filenames_index -rw-r--r-- 1 root root 0 May 12 23:55 glimpse_filetimes -rw-r--r-- 1 root root 493617 May 12 23:55 glimpse_index -rw-r--r-- 1 root root 116 May 12 23:55 glimpse_messages -rw-r--r-- 1 root root 856 May 12 23:55 glimpse_partitions -rw-r--r-- 1 root root 11647 May 12 23:55 glimpse_statistics drwxr-xr-x 34 root root 8192 Apr 7 17:56 linux -rw-r--r-- 1 root root 937984 May 12 23:37 xref < 9> Glimpse : 2002512( ), : 10/10
3 LXR 31 LXR < 10> indexhtml < 11>LXR <HTML> <HEAD> <TITLE>Herein A few Virtual Servers</TITLE> </HEAD> <BODY> <h2> This site provides a few virtual hosting services as follows: <ol> <li> <a href="http://lxradhoc6antsnet/source/?v=ns-21b8a">ns2 source code</a> <p> </ol> </h2> </BODY> </HTML> < 10> LXR indexhtml < 11> LXR : 2002512( ), : 11/11
32 Identifier <11> ns2 source code LXR identifier search NS2 Identifier <12> AODVIdentifier < 12> LXR Identifier < 13>aodv/aodvcc AODV IdentifierNS2 Source Code 4 Source Code Linux Cross-Reference LXR LXR Source Code : 2002512( ), : 12/12
< 13> LXR Identifier Source Code : 2002512( ), : 13/13
5 history ver 10 20020512 : 2002512( ), : 14/14