Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#21 Set arbitrary extension

open
nobody
None
5
2004-03-08
2004-03-08
Brant Evans
No

This patch adds a keyword to the strip directive called
extension. This allows setting the filename to an
arbirary extension if saving the files locally.

This is necessary because some of the comics get saved
with non-graphic extension like .php

The bug/problem was reported in bug # 826668.

As an example the strip definition for Real Life Comics
would look like the following:

strip reallife
name Real Life Comics
artist Greg Dean
homepage http://www.reallifecomics.com/
type search
searchpattern
src=.(/index.php.*?00000-00000-11111-00000-00000)
baseurl http://www.reallifecomics.com/
provides latest
extension png
end

This would cause the files for Real Life to be saved
with a .png extension instead of the default .php.

I have attached the patch file. To apply the patch
download and place in directory above the utar'd
dailystrips-1.0.28 release. Then cd into the
dailystrips-1.0.28 directory and issue:
patch -p1 <../dailystrips_ext_patch.diff

Discussion

  • Brant Evans
    Brant Evans
    2004-03-08

    patch file