Skip to content

Commit

Permalink
rearrange gen order
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlehane committed Jun 25, 2024
1 parent 2ea5a98 commit e41d45b
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions cmd/roy/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,31 @@ func makeFreedesktop() error {
return writeSigFile("freedesktop.sig", m)
}

func makeArchivematica() error {
config.SetHome(*genhome)
p, err := pronom.New(
config.SetName("archivematica"),
config.SetExtend(sets.Expand("archivematica-fmt2.xml,archivematica-fmt3.xml,archivematica-fmt4.xml,archivematica-fmt5.xml")))
if err != nil {
return err
}
return writeSigFile("archivematica.sig", p)
}

func makeWikidata() error {
config.SetHome(*genhome)
wikidataOpts := []config.Option{
config.Clear(),
config.SetWikidataNamespace(),
config.SetWikidataNoPRONOM(),
}
w, err := wikidata.New(wikidataOpts...)
if err != nil {
return err
}
return writeSigFile("wikidata.sig", w)
}

func makeDeluxe() error {
config.SetHome(*genhome)
p, err := pronom.New(config.Clear())
Expand Down Expand Up @@ -132,17 +157,6 @@ func makeDeluxe() error {
return writeSigFile("deluxe.sig", p, m, f, l, w)
}

func makeArchivematica() error {
config.SetHome(*genhome)
p, err := pronom.New(
config.SetName("archivematica"),
config.SetExtend(sets.Expand("archivematica-fmt2.xml,archivematica-fmt3.xml,archivematica-fmt4.xml,archivematica-fmt5.xml")))
if err != nil {
return err
}
return writeSigFile("archivematica.sig", p)
}

func makeSets() error {
config.SetHome(*genhome)
releases, err := pronom.LoadReleases(config.Local("release-notes.xml"))
Expand All @@ -157,17 +171,3 @@ func makeSets() error {
}
return err
}

func makeWikidata() error {
config.SetHome(*genhome)
wikidataOpts := []config.Option{
config.Clear(),
config.SetWikidataNamespace(),
config.SetWikidataNoPRONOM(),
}
w, err := wikidata.New(wikidataOpts...)
if err != nil {
return err
}
return writeSigFile("wikidata.sig", w)
}

0 comments on commit e41d45b

Please sign in to comment.