Difference between revisions of "Tidy"

From CBLFS
Jump to navigationJump to search
(Documentation)
(I added the package description from BLFS.)
Line 12: Line 12:
  
 
----
 
----
 +
 +
== Introduction to Tidy ==
 +
 +
The Tidy package contains a command line tool and libraries used to read HTML, XHTML and XML files and write cleaned up markup. It detects and corrects many common coding errors and strives to produce visually equivalent markup that is both W3C compliant and compatible with most browsers.
  
 
== Dependencies ==
 
== Dependencies ==

Revision as of 23:11, 3 December 2006

Download Source: http://tidy.sourceforge.net/src/tidy_src_051026.tgz
Optional Documentation: http://tidy.sourceforge.net/docs/tidy_docs_051020.tgz
Required Patch: http://svn.cross-lfs.org/svn/repos/patches/tidy/tidy-051026-prevent_PRE_newlines-1.patch

Introduction to Tidy

The Tidy package contains a command line tool and libraries used to read HTML, XHTML and XML files and write cleaned up markup. It detects and corrects many common coding errors and strives to produce visually equivalent markup that is both W3C compliant and compatible with most browsers.

Dependencies

Recomended

  • LibXSLT (To Build the Man Page and Quick Reference Docs)

Optional

The HTML Tidy documentation is contained in a separate tarball. Unpack both the source and docs tarballs before starting the build.

Non-Multilib

Compile the package:

patch -Np1 -i ../tidy-051026-prevent_PRE_newlines-1.patch &&
sh build/gnuauto/setup.sh &&
./configure --prefix=/usr &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

patch -Np1 -i ../tidy-051026-prevent_PRE_newlines-1.patch &&
sh build/gnuauto/setup.sh &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package

make install

N32

Compile the package:

patch -Np1 -i ../tidy-051026-prevent_PRE_newlines-1.patch &&
sh build/gnuauto/setup.sh &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install

64Bit

Compile the package:

patch -Np1 -i ../tidy-051026-prevent_PRE_newlines-1.patch &&
sh build/gnuauto/setup.sh &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install

Documentation

If you have LibXSLT installed run the following command to build the man page and HTML documentation:

cd htmldoc &&
tidy -xml-help > tidy-help.xml &&
tidy -xml-config > tidy-config.xml &&
xsltproc -o tidy.1 tidy1.xsl tidy-help.xml &&
xsltproc -o quickref.html quickref-html.xsl tidy-config.xml &&
cd ..

Install the man page:

install -v -m644 htmldoc/tidy.1 /usr/share/man/man1

If you downloaded the pre-built documentation tarball install it with the following command:

install -v -m755 -d /usr/share/doc/tidy-051020 &&
cp -v -R htmldoc/* /usr/share/doc/tidy-051020