⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 linux下阅读源码的好工具
💻
字号:
These files constitute fixes and enhancements for Webglimpse1.7.1. Feel free to contact me at cvogler@gradient.cis.upenn.edu withany questions or concerns.Overview:=========htuml2txt.lex    - a set of lex rules intended to replace the functionality                    htuml2txt.pl. Can be built with either flex or an                    8bit-clean AT&T lex.Makefile.linux   - Makefile for building an optimized htuml2txt on Linux.                   Adapting it to other systems should be trivial.Makefile.flex    - A generic makefile for flex Makefile.att     - A generic makefile for AT&T lex variantsmakecron.patch   - A small patch that makes sure that the indexing phase                   of Webglimpse also uses an HTML filter (html2txt,                   htuml2txt, or htuml2txt.pl). It does so by adding the -z                   switch to the argument list of glimpseindex.htuml2txt.lex ============= Description: A faster HTML filter for WebGlimpse than htuml2txt.pl. Ifound that the spawning of all the perl processes by glimpse was waytoo expensive to be practical. In particular, searching 2000 files fora frequently occuring term took more than 30 seconds on aPII-400/Linux 2.2.5 machine. Rewriting the filter as a set of lexrules sped up the search by a factor of 6, which is about on par withthe plain html2txt filter.You need either flex(1) from the Free Software Foundation(http://www.fsf.org), or an 8bit-clean version of AT&T lex(1) to buildthe filter correctly. Systems that have a C compiler installed usuallyalso have at least one of these tools installed. I tested the filtersuccessfully on Linux 2.2 (using flex), SGI IRIX 6.4 (using both flexand AT&T lex), and Solaris 2.6 (using both flex and AT&T lex).When in doubt, I recommend using flex. It is freely available, and itis much faster and more robust than the AT&T variants of lex.If you are using Linux and have egcs installed, you can build anoptimized version of html2txt with this command:make -f Makefile.linuxOtherwise, if you are using flex on any system, you can build thefilter with this command:make -f Makefile.flexFinally, if you prefer using AT&T lex, you can build the filter withthis command:make -f Makefile.attAny of these commands should build the file "htuml2txt". To install anduse the filter, copy this file to the lib directory in your Webglimpsehome directory. Also, edit the file ".glimpse_filters" in yourdatabase directory and replace all occurrences of "htuml2txt.pl" with"htuml2txt".makecron.patch==============This is a small patch that ensures that Webglimpse uses the HTMLfilters during index creation. This can greatly reduce the number offiles that webglimpse has to search. For some search terms, I observeda speedup of a factor of 2 with this change.To apply the patch, change to the webglimpse home directory and runthis command:patch -p1 < <directory to which you extracted this README>/makecron.patchAfterwards, run makecron and reconfigure the archives to make surethat the changes propagate to all archives.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -