Difference between revisions of "Tidy"
From CBLFS
Jump to navigationJump to search (→Documentation) |
Weibullguy (talk | contribs) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{| style="text-align: left; background-color: AliceBlue;" | {| style="text-align: left; background-color: AliceBlue;" | ||
− | |- | + | |-valign="top" |
!Download Source: | !Download Source: | ||
− | | http://tidy.sourceforge.net/src/ | + | | http://tidy.sourceforge.net/src/old/tidy_src_{{Tidy-Version}}.tgz |
− | |- | + | |-valign="top" |
!Optional Documentation: | !Optional Documentation: | ||
− | | http://tidy.sourceforge.net/docs/ | + | | http://tidy.sourceforge.net/docs/tidy_docs_{{Tidy-Version}}.tgz |
− | |- | + | |-valign="top" |
!Required Patch: | !Required Patch: | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/tidy/tidy- | + | | http://svn.cross-lfs.org/svn/repos/patches/tidy/tidy-{{Tidy-Version}}-prevent_PRE_newlines-1.patch |
|} | |} | ||
---- | ---- | ||
+ | |||
+ | {{Blank-Package-Introduction}} | ||
== Dependencies == | == Dependencies == | ||
Line 20: | Line 22: | ||
* [[Dmalloc]] | * [[Dmalloc]] | ||
− | The HTML Tidy documentation is contained in a separate tarball. Unpack both the source and docs tarballs before starting the build. | + | {{Note|The HTML Tidy documentation is contained in a separate tarball. Unpack both the source and docs tarballs before starting the build.}} |
== Non-Multilib == | == Non-Multilib == | ||
Line 26: | Line 28: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../tidy- | + | patch -Np1 -i ../tidy-{{Tidy-Version}}-prevent_PRE_newlines-1.patch && |
sh build/gnuauto/setup.sh && | sh build/gnuauto/setup.sh && | ||
./configure --prefix=/usr && | ./configure --prefix=/usr && | ||
Line 34: | Line 36: | ||
make install | make install | ||
+ | |||
+ | === Command Explanations === | ||
+ | |||
+ | '''sh build/gnuauto/setup.sh''': This command prepares the source tree for building using the GNU “Auto” tools. | ||
== Multilib == | == Multilib == | ||
Line 41: | Line 47: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../tidy- | + | patch -Np1 -i ../tidy-{{Tidy-Version}}-prevent_PRE_newlines-1.patch && |
sh build/gnuauto/setup.sh && | sh build/gnuauto/setup.sh && | ||
CC="gcc ${BUILD32}" ./configure --prefix=/usr && | CC="gcc ${BUILD32}" ./configure --prefix=/usr && | ||
Line 54: | Line 60: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../tidy- | + | patch -Np1 -i ../tidy-{{Tidy-Version}}-prevent_PRE_newlines-1.patch && |
sh build/gnuauto/setup.sh && | sh build/gnuauto/setup.sh && | ||
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && | CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 && | ||
Line 67: | Line 73: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../tidy- | + | patch -Np1 -i ../tidy-{{Tidy-Version}}-prevent_PRE_newlines-1.patch && |
sh build/gnuauto/setup.sh && | sh build/gnuauto/setup.sh && | ||
CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && | CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 && | ||
Line 93: | Line 99: | ||
If you downloaded the pre-built documentation tarball install it with the following command: | If you downloaded the pre-built documentation tarball install it with the following command: | ||
− | install -v -m755 -d /usr/share/doc/tidy- | + | install -v -m755 -d /usr/share/doc/tidy-{{Tidy-Version}} && |
− | cp -v -R htmldoc/* /usr/share/doc/tidy- | + | cp -v -R htmldoc/* /usr/share/doc/tidy-{{Tidy-Version}} |
+ | |||
+ | = Contents = | ||
+ | |||
+ | {| style="text-align: left;" | ||
+ | |-valign="top" | ||
+ | ! Installed Programs: | ||
+ | | tab2space and tidy | ||
+ | |-valign="top" | ||
+ | ! Installed Libraries: | ||
+ | | libtidy.{so,a} | ||
+ | |-valign="top" | ||
+ | ! Installed Directories: | ||
+ | | /usr/share/doc/tidy-{{Tidy-Version}} | ||
+ | |} | ||
+ | |||
+ | === Short Descriptions === | ||
+ | |||
+ | {| style="text-align: left;" | ||
+ | |-valign="top" | ||
+ | ! tab2space | ||
+ | | is a utility to expand tabs and ensure consistent line endings. | ||
+ | |-valign="top" | ||
+ | ! tidy | ||
+ | | validates, corrects, and pretty-prints HTML files. | ||
+ | |-valign="top" | ||
+ | ! libtidy.{so,a} | ||
+ | | libraries provide the HTML Tidy API functions to '''tidy''' and can also be called by other programs. | ||
+ | |} | ||
+ | |||
+ | [[Category:General Utilities]] |
Latest revision as of 07:55, 4 April 2009
Download Source: | http://tidy.sourceforge.net/src/old/tidy_src_051026.tgz |
---|---|
Optional Documentation: | http://tidy.sourceforge.net/docs/tidy_docs_051026.tgz |
Required Patch: | http://svn.cross-lfs.org/svn/repos/patches/tidy/tidy-051026-prevent_PRE_newlines-1.patch |
Contents
Introduction to Tidy
Project Homepage: Unknown
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
Command Explanations
sh build/gnuauto/setup.sh: This command prepares the source tree for building using the GNU “Auto” tools.
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-051026 && cp -v -R htmldoc/* /usr/share/doc/tidy-051026
Contents
Installed Programs: | tab2space and tidy |
---|---|
Installed Libraries: | libtidy.{so,a} |
Installed Directories: | /usr/share/doc/tidy-051026 |
Short Descriptions
tab2space | is a utility to expand tabs and ensure consistent line endings. |
---|---|
tidy | validates, corrects, and pretty-prints HTML files. |
libtidy.{so,a} | libraries provide the HTML Tidy API functions to tidy and can also be called by other programs. |