This file is indexed.

/usr/share/doc/dpuser-doc/makesearch.dpuser is in dpuser-doc 3.3+p1+dfsg-2build1.

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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// from www.javascriptkit.com/script/cut154.shtml
@tools.dpuser

output = stringarray(0)

output += "title = new Object();"
output += "desc = new Object();"
output += "links= new Object();"
output += "matched= new Object();"
output += "keywords= new Object();"
output += "found= new Object();"
output += "var temp=0;"
// actual location or the item to be searched // description of he location
// actual link
// percentage match found
// keywords as parsed from the input 
//no of keywords after parsing
output += "keywords[0]=0"
//no of  matches found.
output += "found[0]=0"

database = stringarray(0)
n = 1

text = import("../functions.txt", /text)
while (nelements(text) > 0) {
 i = 1
 while(text[i] != "" && i < nelements(text)) i++
 function = text[1:i]
 print function[1]
 if (i < nelements(text)) {
  text = text[i+1:nelements(text)]
 } else {
  text = stringarray(0)
 }
 database += "desc[" + n + "] = \"" + function[1] + " function\""
 line = function[1] + " " + function[2]
 replace line, "\"", ""
 replace line, "\"", ""
 line = unify(line)
 database += "title[" + n + "] = \"" + line + "\""
aga=function[1]
replace aga, " \(obsolete\)", ""
 database += "links[" + n + "] = \"function_" + aga + ".html\""
 database += "matched[" + n + "] = 0"
 n++
}
text = import("../procedures.txt", /text)
while (nelements(text) > 0) {
 i = 1
 while(text[i] != "" && i < nelements(text)) i++
 function = text[1:i]
 print function[1]
 if (i < nelements(text)) {
  text = text[i+1:nelements(text)]
 } else {
  text = stringarray(0)
 }
 database += "desc[" + n + "] = \"" + function[1] + " procedure\""
 line = function[1] + " " + function[2]
 replace line, "\"", " "
 replace line, "\"", " "
 line = unify(line)
 database += "title[" + n + "] = \"" + line + "\""
aga=function[1]
replace aga, " \(obsolete\)", ""
 database += "links[" + n + "] = \"procedure_" + aga + ".html\""
 database += "matched[" + n + "] = 0"
 n++
}

files = ["index.html","installing.html","history.html","syntax.html","operators.html","ifandloop.html","variables.html","plotting.html","fitsfiles.html","examples.html"]
for i=1, nelements(files) {
 print files[i]
 text = import("../" + files[i], /text)
 text = nohtml(text)
 line = ""
 for j=1, nelements(text) line += text[j] + " "
 while (strpos(line, "&nbsp;") != -1) replace line, "&nbsp;", " "
 while (strpos(line, "\"") != -1) replace line, "\"", " "
 line = simplifywhitespace(line)
 line = unify(line)
 database += "desc[" + n + "] = \"" + files[i] + "\""
 database += "title[" + n + "] = \"" + line + "\""
 database += "links[" + n + "] = \"" + files[i] + "\""
 database += "matched[" + n + "] = 0"
 n++
}

output += "title[0] = " + (n-1)
output += database

output += import("searchend.html", /text)

export "index.js", output