This file is indexed.

/usr/share/bibledit-gtk/retrieval.pl is in bibledit-gtk-data 4.6-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Copyright (©) 2011 Peter von Kaehne.
#  
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#  
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#  
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

use XML::LibXML;
use LWP::UserAgent;
use utf8;

my $ua = LWP::UserAgent->new;
my $response =
  $ua->get('https://sites.google.com/site/bibledit/system/feeds/sitemap');

$parser  = XML::LibXML->new();
$content = $parser->parse_string( $response->content );

@pages = $content->getElementsByTagName("loc");

foreach (@pages) {
    my $page_uri = $_->textContent();
    $page_uri =~ s/site\/bibledit/feeds\/content\/site\/bibledit?path=/;

    my $page_name = $_->textContent();
    $page_name =~
      s/https:\/\/sites.google.com\/site\/bibledit\/(.*)/site\/$1\.html/;

    my $page         = $ua->get($page_uri);
    my $page_parse   = $parser->parse_string( $page->content );
    my $page_content = "";

    if ( ( $page_parse->getElementsByTagName("div") )[1] ) {
        $page_content .=
          ( $page_parse->getElementsByTagName("div") )[1]->toString();
    }
    $page_content =~
      s/http:\/\/sites.google.com\/site\/bibledit\/(.*?)\"/SELFREFERENCE$1\.html\"/g;
    $page_content =~ s/<\/?div.*?>//g;
    $page_content =
        "<head\/><body><div id=\"menu\"></div><div id=\"content\"><h1>"
      . ( $page_parse->getElementsByTagName("title") )[1]->textContent()
      . "</h1>"
      . $page_content
      . "<\/div><\/body>";

    ($dir_name) = ( $page_name =~ /(.*?)\/[^\/]*?$/ );

    my $name = $content->createElement("name");
    $name->appendTextNode($page_name);
    my $dir  = $content->createElement("dir");
    my $html = $content->createElement("html");

    $html->appendWellBalancedChunk($page_content);
    $dir->appendTextNode($dir_name);

    $_->addSibling($dir);
    $_->addSibling($html);
    $_->addSibling($name);
}

open FILE, ">", "site.xml";
print FILE $content->toString();
close;