LXR 설치 및 사용법.doc

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "LXR 설치 및 사용법.doc"

Transcription

1 Installation of LXR (Linux Cross-Reference) for Source Code Reference Code Reference LXR : ( ), : 1/1

2 1 3 2 LXR 3 21 LXR 3 22 LXR 221 LXR LXR LXR lxrconf httpdconf htaccess LXR 27 Glimpse LXR LXR 32 Identifier : ( ), : 2/2

3 1 Linux Cross-Reference (LXR)Hypertext Cross-referencing Tool Function declarations, Data (type) definitions Preprocessor macros Source Code LXR 2 LXR 21 LXR 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 : ( ), : 3/3

4 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: # 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 : ( ), : 4/4

5 lxrconf Symbolic Link, < 3> lxrconf Symbolic Link /]# cd /home/httpd/html/lxr/http lxr]# ln -s lxrconf sourcelxrconf lxr]# ln -s lxrconf difflxrconf lxr]# ln -s lxrconf findlxrconf lxr]# ln -s lxrconf searchlxrconf lxr]# ln -s lxrconf identlxrconf < 3> lxrconf Symbolic Link : ( ), : 5/5

6 httpdconf < 4>LXR Apache Server httpdconf LXR Domain Namelxradhoc6antsnet Domain NameName Server httpdconf apachectl restart httpd Apache 2035 ( httpd v Apache ) ServerAdmin DocumentRoot "/home/httpd/html" 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 <VirtualHost > ServerAdmin DocumentRoot /home/httpd/html/lxr/http ServerName lxradhoc6antsnet ErrorLog logs/lxr-error_log CustomLog logs/lxr-access_log common </VirtualHost> < 4> httpdconf : ( ), : 6/6

7 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 : ( ), : 7/7

8 source]# pwd /home/httpd/html/lxr/source source]# ls defversion ns-21b8a versions source]# cd ns-21b8a/ ns-21b8a]# ls -l total 8 drwxr-xr-x 34 root root 8192 Apr 7 17:56 linux ns-21b8a]# ls linux/ ack-reconscc indep-utils rtqueueh ack-reconsh install-sh rttablecc acto-adccc INSTALLWIN32 rttableh < 7> Source Code : ( ), : 8/8

9 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 ns-21b8a]# pwd /home/httpd/html/lxr/source/ns-21b8a ns-21b8a]# /home/httpd/html/lxr/bin/genxref linux/ ns-21b8a]# ls -l total 848 -rw-r root root May 12 23:37 fileidx drwxr-xr-x 34 root root 8192 Apr 7 17:56 linux -rw-r--r-- 1 root root May 12 23:37 xref ns-21b8a]# chmod 644 fileidx ns-21b8a]# ls -l total 848 -rw-r--r-- 1 root root May 12 23:37 fileidx drwxr-xr-x 34 root root 8192 Apr 7 17:56 linux -rw-r--r-- 1 root root May 12 23:37 xref ns-21b8a]# < 8> LXR : ( ), : 9/9

10 27 Glimpse Freetext search Glimpse < 9> H Glimpse -H Glimpse 26 Glimpse 644 chmod < 9> Glimpse 644 ns-21b8a]# pwd /home/httpd/html/lxr/source/ns-21b8a ns-21b8a]# glimpseindex H linux/ Glimpse-files created here: -rw root root May 12 23:55 glimpse_filenames -rw root root 5884 May 12 23:55 glimpse_filenames_index -rw root root 0 May 12 23:55 glimpse_filetimes -rw root root May 12 23:55 glimpse_index -rw root root 116 May 12 23:55 glimpse_messages -rw root root 856 May 12 23:55 glimpse_partitions -rw root root May 12 23:55 glimpse_statistics ns-21b8a]# chmod 644 glimpse_* 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 May 12 23:37 fileidx -rw-r--r-- 1 root root 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 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 May 12 23:55 glimpse_statistics drwxr-xr-x 34 root root 8192 Apr 7 17:56 linux -rw-r--r-- 1 root root May 12 23:37 xref < 9> Glimpse : ( ), : 10/10

11 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 : ( ), : 11/11

12 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 : ( ), : 12/12

13 < 13> LXR Identifier Source Code : ( ), : 13/13

14 5 history ver : ( ), : 14/14