aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/prep-manual.sh
blob: 130d2d73697c4b1ae8b22e3baf136731f5b742dc (plain) (blame)
1
2
3
4
5
6
7
#!/bin/bash
cat $1 | \
	sed -e '1,/title/d;/<\/head>/,/<body/d;/<\/body/,/<\/html/d' | \
	sed -e '/^@media/,/^}/d' | \
	sed -e 's/src="images/src="\/images/g' | \
	sed -e 's/src="mobile-images/src="\/mobile-images/g' | \
	html-minifier --collapse-whitespace --keep-closing-slash --minify-js --minify-css > $1.wp