Skip to content

Instantly share code, notes, and snippets.

@goromlagche
Forked from tacone/ubuntu-install-tidy-html5.sh
Last active August 29, 2015 14:17
Show Gist options
  • Save goromlagche/453391b3c06bec82630a to your computer and use it in GitHub Desktop.
Save goromlagche/453391b3c06bec82630a to your computer and use it in GitHub Desktop.
#!/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