<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/master-sync-shared.git/src/main/resources/libvirt/libosinfo, branch master</title>
<subtitle>Gemeinsam genutzte Funktionen und Klassen vom Masterserver und Satelliten-Daemon</subtitle>
<id>https://git.openslx.org/bwlp/master-sync-shared.git/atom/src/main/resources/libvirt/libosinfo?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/master-sync-shared.git/atom/src/main/resources/libvirt/libosinfo?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/master-sync-shared.git/'/>
<updated>2021-05-04T06:50:34+00:00</updated>
<entry>
<title>Add libosinfo database and validation schema files for Libvirt</title>
<updated>2021-05-04T06:50:34+00:00</updated>
<author>
<name>Manuel Bentele</name>
</author>
<published>2021-05-04T06:50:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/master-sync-shared.git/commit/?id=bf9fe604847991ad029980703a6c72b8a309b5a1'/>
<id>urn:sha1:bf9fe604847991ad029980703a6c72b8a309b5a1</id>
<content type='text'>
The libosinfo database consists of a single XML file aggreated from
the original libosinfo database which is split accross multiple XML
files. The aggregation is achieved by the following commands where
the original data base files are located under /usr/share/osinfo/os:

  FILES=(/usr/share/osinfo/os/**/*.xml)
  START="$(sed -n '/^&lt;libosinfo version=/,/&gt;$/p' "${FILES[0]}")"
  END="&lt;/libosinfo&gt;"

  for FILE in "${FILES[@]}"; do
      CONTENT+="$(sed -n '/&lt;os/,/&lt;\/os&gt;/p' "${FILE}")"$'\n'
  done

  echo -e "${START}\n${CONTENT}${END}" &gt; \
      src/main/resources/libvirt/libosinfo/xml/osinfo.xml
</content>
</entry>
</feed>
