docs-common/bin use-draft-css,NONE,1.1
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Wed Nov 23 06:40:33 UTC 2005
- Previous message (by thread): docs-common/css fedora-draft.css,NONE,1.1 fedora.css,1.8,1.9
- Next message (by thread): release-notes legacy-en.xml, 1.1, 1.2 package-notes-en.xml, 1.4, 1.5 security-en.xml, 1.2, 1.3 splash-en.xml, 1.3, 1.4 web-servers-en.xml, 1.2, 1.3 xorg-en.xml, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jtr
Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10007
Added Files:
use-draft-css
Log Message:
Shell script to switch to the "DRAFT" CSS stylesheet in an HTML directory.
--- NEW FILE use-draft-css ---
#!/bin/bash
########################################################################
# Tommy.Reynolds <Tommy.Reynolds at 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 draft CSS stylesheet
#
# Use like this:
#
# use-draft-css /path/to/docdir
#
########################################################################
# You will need to manually copy "../css/fedora-draft.css" and
# "../images/watermark.png" into the HTML's top-level directory.
########################################################################
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.css"/href="fedora-draft.css"/' ${f} >${f}.tmp
mv ${f}.tmp ${f}
done
- Previous message (by thread): docs-common/css fedora-draft.css,NONE,1.1 fedora.css,1.8,1.9
- Next message (by thread): release-notes legacy-en.xml, 1.1, 1.2 package-notes-en.xml, 1.4, 1.5 security-en.xml, 1.2, 1.3 splash-en.xml, 1.3, 1.4 web-servers-en.xml, 1.2, 1.3 xorg-en.xml, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-docs-commits
mailing list