#!/usr/bin/perl # Determine the basename of this directory: $ThisDir=`pwd`; chomp($ThisDir) ; @DirParts = split("/",$ThisDir) ; $ThisDirsBaseName = pop(@DirParts) ; # Make way for the new index: if ( -f "table" ) { system("rm -f old-table") ; system("mv table old-table") ; } ; open(OUT,">table") || die("Out:table") ; print(OUT "\n") ; foreach $Topic ( `cat .topics` ) { chomp($Topic) ; print(OUT "\n") ; print(OUT "\n") ; print(OUT " print(OUT "\n") ; print(OUT "\n") ; } ; print(OUT "
\n") ; @FileNameList = <$Topic*.jpg> ; # for multi-image in "$imagename*.jpg" foreach $FileName ( sort @FileNameList ) { chomp($FileName) ; # echo (link tn_$multi-image.jpg to $multi-image.jpg) print(OUT "
\n") ; # echo (Create a link to the big image) # print(OUT "
Larger image is here\n") ; } ; #
print(OUT "\n") ; open(DESC,"<" . $Topic . ".txt") || die("In:" . $Topic . ".txt") ; while ( $aTopicDescriptionLine = ) { # (insert description here from the # hashfile) print(OUT $aTopicDescriptionLine) ; } ; close(DESC) ; #
\n") ; close(OUT) ;