diff options
author | klondike <klondike@xiscosoft.es> | 2010-11-12 18:29:21 +0100 |
---|---|---|
committer | klondike <klondike@xiscosoft.es> | 2010-11-12 18:29:21 +0100 |
commit | ae75400747c90306cc4ca230e9e1b7814c7f08e8 (patch) | |
tree | 2921974a50447cdcafcecd0344c0733ab29b8e81 /fixpreview.sh | |
parent | Reorganizing things to make easier to track (diff) | |
download | hardened-docs-ae75400747c90306cc4ca230e9e1b7814c7f08e8.tar.gz hardened-docs-ae75400747c90306cc4ca230e9e1b7814c7f08e8.tar.bz2 hardened-docs-ae75400747c90306cc4ca230e9e1b7814c7f08e8.zip |
Adapting to new structure and fixing gentoo.org addresses
Diffstat (limited to 'fixpreview.sh')
-rwxr-xr-x | fixpreview.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fixpreview.sh b/fixpreview.sh index 4d243bb..ff0728f 100755 --- a/fixpreview.sh +++ b/fixpreview.sh @@ -10,11 +10,12 @@ then exit 1; fi -for FILE in *.html; +for FILE in `find html/ -iname '*.html'`; do sed -i -e 's|"/css/main.css"|"http://www.gentoo.org/css/main.css"|g' ${FILE}; sed -i -e 's|"../../../|"http://www.gentoo.org/|g' ${FILE}; sed -i -e 's|"/images/|"http://www.gentoo.org/images/|g' ${FILE}; + sed -i -e 's|"/|"http://www.gentoo.org/|g' ${FILE}; cp ${FILE} ${FILE}.orig; cat ${FILE}.orig | tr -d "\302" | tr -d "\240" > ${FILE}; rm ${FILE}.orig; |