HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: GIF being renamed to SHTML?!
Author: Xavier Roche
Date: 10/15/2003 07:04
 
> Under set options -> Local Structure Type I removed the .%
t 
> and put in .shtml to rename all saved files as SHTML 
files. 
> This worked fine awhile ago and gifs were downloaded and 
> retained properly within the site. 

This was indeed a bug :)

> Now however, when I'm doing the same thing. Even <IMG 
> SRC='*.gif'> files are being renamed to .SHTML files and 
> locally I can't even view the .shtml file when the 
> mirroring is complete. Instead the source code(literally) 
> displays. Rather weird. Any ideas as to why this happens 
> Xavier? :)

Well, the bug might have been fixed :)

You can rename all html files, however, using the script 
given few days ago:

find . -type f -name "*.html" -exec ./myscript {} \;

With a "myscript" script such as:

#!/bin/sh
#
test -f "$1" || exit 1
# One single line here:
cat "$1" | sed -e "s/\([\"']\)\([^\"']*\)\(\.html\)\([\"']
\)/\1\2\.shtml\4/g" > "${1%.*}.shtml"
# (End of long line)
rm -f "$1"

 
Reply Create subthread


All articles

Subject Author Date
GIF being renamed to SHTML?!

10/14/2003 21:47
Re: GIF being renamed to SHTML?!

10/15/2003 07:04
Re: GIF being renamed to SHTML?!

10/15/2003 16:40
Re: GIF being renamed to SHTML?!

10/15/2003 17:44
Re: GIF being renamed to SHTML?!

10/15/2003 18:41
Re: GIF being renamed to SHTML?!

10/15/2003 19:31




2

Created with FORUM 2.0.11