Last active
December 11, 2016 01:26
-
-
Save tacone/6082520 to your computer and use it in GitHub Desktop.
Install html5 tidy on ubuntu as a deb package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if user is root | |
if [ $(id -u) != "0" ]; then | |
echo "Error: You must be root to run this script, please use root to install the software." | |
exit 1 | |
fi | |
apt-get remove libtidy-0.99-0 tidy | |
apt-get install git-core automake libtool checkinstall | |
mkdir /tmp/htmltidy | |
cd /tmp/htmltidy | |
git clone https://github.com/w3c/tidy-html5 | |
cd tidy-html5 | |
sh build/gnuauto/setup.sh && ./configure --prefix=/usr && make | |
checkinstall --pkgversion $(date +"%Y%m%dcvs-1") | |
rm /tmp/htmltidy -rf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this, to install tidy 5 from the given binary source under Ubuntu 14.04.
https://gist.github.com/teawithfruit/90f84776d3ba61565313