From: Eugene Crosser Date: Fri, 22 Aug 2008 09:46:58 +0000 (+0000) Subject: update doc; use SVN version to create html comments X-Git-Tag: 2.00~45 X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=commitdiff_plain;h=2b0323392913d7822459e273f666de8d1992b5cb;hp=c753aab96a7fc45d6d9f751e5b2cf76fc45a402b update doc; use SVN version to create html comments --- diff --git a/README b/README index 7f8b7ed..fe62fca 100644 --- a/README +++ b/README @@ -29,7 +29,7 @@ title for this album. Two subdirectories are created with scaled down versions of the images: ".640" and ".160", and a direcotory named ".html" containging slideshow pages (and info pages for non-javascript clients). -For the thing to work, you must create a subdirectory named ".include" +For the thing to work, you must create a subdirectory named ".gallery2" at the root of your image gallery, or somewhere upstairs in the document tree, and put there files from the subdirectory "include" of this distribution. Then, chdir to the root of your gallery and run @@ -42,12 +42,15 @@ script like "mkindex.pl". command-line options: --help: print help message and exit - --incpath: do not try to find .include diretory upstream, use + --incpath: do not try to find .gallery2 diretory upstream, use specified path (absolute or relavive). Use with causion. --debug: print a lot of debugging info to stdout as you run --asktitle: ask to edit album titles even if there are ".title" files --noasktitle: don't ask to enter album titles even where ".title" files are absent. Use partial directory names as titles. + --rssfile: partial name of rss file. Must be reachable from the + current directory or from one of upper directories. + First must be created with mkgalrss.pl script. The only way to specify titles for individual pictures is to write comments into the image files. diff --git a/mkgallery.pl b/mkgallery.pl index 7efd5c4..7857f43 100755 --- a/mkgallery.pl +++ b/mkgallery.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id$ +my $version='$Id$'; # Recursively create image gallery index and slideshow wrappings. # Makes use of modified "slideshow" javascript by Samuel Birch @@ -489,14 +489,16 @@ sub makeaux { -head=>meta({-http_equiv=>'Refresh', -content=>"3; url=$fwdref"}), -style=>{-src=>$inc."gallery.css"}, - ),"\n"; + ),"\n", + comment("Created by ".$version),"\n"; } else { print $F start_html(-title=>$title, -encoding=>"utf-8", -bgcolor=>"#808080", -style=>{-src=>$inc."gallery.css"}, - ),"\n"; + ),"\n", + comment("Created by ".$version),"\n"; } print $F start_table({-class=>'navi'}),start_Tr,"\n", td(a({-href=>"../index.html"},"Index")),"\n", @@ -530,6 +532,7 @@ sub makeaux { {-src=>$inc."urlparser.js"}, {-src=>$inc."infopage.js"}, ]),"\n", + comment("Created by ".$version),"\n", start_center,"\n", h1($title),"\n", table({-class=>'ipage'}, @@ -577,7 +580,8 @@ sub startindex { {-src=>$inc."slideshow.js"}, {-src=>$inc."gallery.js"}, {-code=>"var incPrefix='$inc';"} - ]), + ]),"\n", + comment("Created by ".$version),"\n", a({-href=>"../index.html"},"UP"),"\n", start_center,"\n", h1($title),"\n",