summaryrefslogtreecommitdiffstats
path: root/scripts/prep-manual.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/prep-manual.sh')
-rwxr-xr-xscripts/prep-manual.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/prep-manual.sh b/scripts/prep-manual.sh
new file mode 100755
index 000000000..130d2d736
--- /dev/null
+++ b/scripts/prep-manual.sh
@@ -0,0 +1,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