/usr/share/lifelines/lldb.ll is in lifelines-reports 3.0.61-2.
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | /*
* @progname lldb.ll
* @version 1.02
* @author Marc Nozell <marc@nozell.com>
* @category palmpilot
* @output pdb import files
* @description
*
* This program produces a report of all INDI's in the database, with
* sorted names as output for inport into Tom Dyas' Open Source DB
* PalmOS app.
*
* lldb.ll V1.02
*
* Marc Nozell <marc@nozell.com>
*
* This report generator works only with the LifeLines Genealogy program
*
* It will produce a report of all INDI's in the database, with
* sorted names as output for inport into Tom Dyas' Open Source DB
* PalmOS app.
*
* 0) Obtain Tom Wetmore's LifeLines genealogy program for Unix.
* See http://lifelines.sourceforge.net/
*
* 1) Obtain Kenneth Albanowski's <kjahds@kjahds.com> pilot-link
* package. The Microsoft Windows-based Palm desktop should also
* work. Most Linux distributions include pilot-link (check
* http://rpmfind.net) and should build on most UNIXes.
*
* 2) Obtain Tom Dyas' <tdyas@vger.rutgers.edu> "DB: Open Source
* Database Program for PalmOS" and supporting tools from
* http://pilot-db.sourceforge.net/
*
* 3) Run this lifelines report. It will generate two files, lldb.info
* and lldb.csv.
*
* 5) Run the CSV to PDB conversion tool like this:
* csv2pdb --info=lldb.info lldb.csv lldb.pdb
*
* 5) Install the converted info to the Palm device like this:
* pilot-link -i ll.pdb
*
*
* V1.00 11-Sep-1999
* Initial Version
*
* V1.01 26-Oct-1999
*
* Cleaned up output files
* Updated to new version Dyas' conversion tool
* (pre-palm-db-tools-0.2.0.tar.gz)
*
* V1.02 10-Nov-2000
* Updated URLs
*
* $Log: lldb.ll,v $
* Revision 1.7 2004/07/19 05:54:55 dr_doom
* Merge Vincent Broman Changes to reports
*
* Revision 1.6 2003/01/19 02:50:23 dr_doom
* move 1 paragraph description to immediately before @description for index.html
*
* Revision 1.5 2000/11/28 21:39:45 nozell
* Add keyword tags to all reports
* Extend the report script menu to display script output format
*
* Revision 1.4 2000/11/27 20:48:15 nozell
* Header is to verbose, use just Log
*
* Revision 1.3 2000/11/27 20:46:26 nozell
* Typo in CVS header
*
* Revision 1.2 2000/11/27 20:45:43 nozell
* Add CVS keywords
*
*
*/
proc main ()
{
/* newfile (concat (database (), ".info"), 0) */
newfile (concat ("lldb.info"), 0)
"title \"Genealogy\"\n"
"backup off\n"
"find on\n"
"extended off\n"
"field \"ID\" string 25\n"
"field \"Name\" string 80\n"
"field \"Birth\" string 80\n"
"field \"Death\" string 80\n"
"field \"SpouseID\" string 80\n"
"field \"ChildrenID\" string 80\n"
"field \"FatherID\" string 80\n"
"field \"MotherID\" string 80\n"
/* newfile (concat (database (), ".csv"), 0) */
newfile (concat ("lldb.csv"), 0)
indiset(idx)
/* monthformat(4) */
/* Grab them all */
print("Please wait...")
forindi(indi,n) {
addtoset(idx,indi,n)
}
print(nl()) print("Found ") print(d(n)) print(" people.")
print(nl())
print("begin sorting") print(nl())
namesort(idx)
print("done sorting") print(nl())
/* col(1) "ID,Name,Birth,Death,SpouseID,ChildrenID,FatherID,MotherID" nl() */
forindiset(idx,indi,v,n) {
col(1) "\"" key(indi) "\""
","
"\""fullname(indi,1,0,30) "\""
","
call showvitals(indi)
call showspouse(indi)
call showkids(indi)
call showparents(indi)
print("+")
}
nl()
print(nl())
}
/************************************************************************/
proc showvitals (i)
{
set(b, birth(i))
set(d, death(i))
if (and(b, short(b))) {
"\"" long(b) "\""
}
else {
"\" \""
}
","
if (and(d, short(d))) {
"\"" long(d) "\""
}
else {
"\" \""
}
}
proc showparents (i)
{
",\""
if(fath,father(i)) {
/* "(" key(fath) ") " */
key(fath)
}
else {
"-unknown-"
}
"\""
",\""
if(moth,mother(i)) {
/* "(" key(moth) ") " */
key(moth)
}
else {
"-unknown-"
}
"\""
}
/************************************************************************/
proc showspouse (i) {
",\""
if (eq(1, nspouses(i))) {
spouses(i, s, f, n) {
name(s) "(" key(s) ") "
}
}
else {
spouses(i, s, f, n) {
ord(n) /* First, Second ... */
" " name(s) "(" key(s) ") "
}
}
"\""
}
/************************************************************************/
proc showkids (i) {
",\""
set(j, 0)
families(i, f, s, n) {
set(j, add(j, nchildren(f)))
}
if (eq(0, j)) {
" "
}
else {
if (eq(1, j)) {
"Child: "
}
else {
d(j) " Children:"
}
set(j, 1)
families(i, f, s, n) {
children(f, c, m) {
" (" key(c) ")"
set(j, add(j,1))
}
}
}
"\""
}
|