[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
docs-common/bin use-prod-css,NONE,1.1
- From: "Tommy Reynolds" (jtr) <fedora-docs-commits redhat com>
- To: fedora-docs-commits redhat com
- Subject: docs-common/bin use-prod-css,NONE,1.1
- Date: Tue, 29 Nov 2005 16:42:41 -0500
Author: jtr
Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28240/bin
Added Files:
use-prod-css
Log Message:
Change default to the HTML "fedora-draft.css" stylesheet to reinforce
that the rendering here is not meant to be the final production rendering.
Provided the "bin/use-prod-css" to locally change HTML files to minic
production-quality rendering. NOTE: draft watermarking does NOT PRINT
unless the browser preferences enable background image printing.
--- NEW FILE use-prod-css ---
#!/bin/bash
########################################################################
# Tommy.Reynolds <Tommy Reynolds MegaCoder com>
# International copyright secured (C) 2005, All rights reserved.
# This software is licensed under the GPL.
########################################################################
# Do surgery on the *.html files to reference the production CSS stylesheet
#
# Use like this:
#
# use-prod-css /path/to/docdir
#
########################################################################
USAGE="usage: $(basename $0) /path/to/docdir"
SILENT=yes
while getopts v c
do
case "${c}" in
v ) SILENT="";;
* ) echo "${USAGE}" >&2; exit 1;;
esac
done
shift $(expr ${OPTIND} - 1)
if [ $# -gt 1 ]; then
echo "${USAGE}" >&2
exit 1
fi
find ${1:-.} -iname '*.html' -print |
while read f; do
[ "${SILENT}" ] || echo ${f}
sed 's/href="fedora-draft.css"/href="fedora.css"/' ${f} >${f}.tmp
mv ${f}.tmp ${f}
done
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]