#!/usr/bin/perl -w # # Run as find VCS -type d -name C | ./figures_scan.pl > figures.html # # Author: Simos Xenitellis # print "

Figures for language Greek

\n"; while(<>) { chop; print "

Starting with $_"; $in = $_ . '/figures'; $inel = $_; $inel =~ s/C$/el\/figures/g; @components = split(/\//, $in); $module = $components[1]; print "\t$module

\n"; @Cpngs = 0; if ( -e $in ) { #print "

Exists: $in

\n"; $a = `ls $in/*.png`; @Cpngs = split(/\n/, $a); print " \n"; print " \n"; foreach $file (@Cpngs) { @imagecomponents = split(/\//, $file); $imagefile = $imagecomponents[-1]; $segment = substr($file, 4); $segment =~ s/\//\/plain\//; $url = "http://git.gnome.org/cgit/$segment"; $oururl = $url; $oururl =~ s/\/C\//\/el\//; print "\t\t\n"; if ( -e $inel ) { if ( -e "$inel/$imagefile" ) { print "\t\t\n"; } else { print "\t\t\n"; } } else { print "\t\t\n"; } print " \n"; print " \n"; print " \n"; print " \n"; } print "
\"$url\"/\"$oururl\"/NO IMAGENO IMAGE
$url
\n"; #if ( ! -e $inel ) #{ # print "

Does not exist: $inel

\n"; #} } #else #{ # print "

Does not exist: $in

\n"; #} print "\n"; }