Browse Source

skip some of the malformed lines for now...

main
John-Mark Gurney 6 years ago
parent
commit
c56769e11f
2 changed files with 13 additions and 0 deletions
  1. +4
    -0
      README.md
  2. +9
    -0
      mksnapidx.awk

+ 4
- 0
README.md View File

@@ -8,3 +8,7 @@ file.


The only file needed for this is the snapaid.sh script. The other files The only file needed for this is the snapaid.sh script. The other files
are used for generating the index. are used for generating the index.

NOTE: Not all of the snapshots are in the database. Some snapshot names,
like 11.0-RC1, don't contain all the info others do, and are not
included. In the future, hopefully this will be fixed.

+ 9
- 0
mksnapidx.awk View File

@@ -86,5 +86,14 @@ $1 == "SHA512" {
} else } else
url = root parts[2] "/" fname url = root parts[2] "/" fname


# if this part doesn't begin w/ r (for svn rev), skip it, we can't parse
# others for now
if (substr(parts[nextidx], 1, 1) != "r")
next

# double check that date is valid, if not, skip it
if (!isdate(date))
next

printf("%s %s %s %s %s %s %s %s %s %s\n", type, parts[2] "-" parts[3], arch, platform, date, parts[nextidx], vers, fname, url, MID) printf("%s %s %s %s %s %s %s %s %s %s\n", type, parts[2] "-" parts[3], arch, platform, date, parts[nextidx], vers, fname, url, MID)
} }

Loading…
Cancel
Save