summaryrefslogtreecommitdiffstats
path: root/src/main/resources/libvirt/libosinfo/rng
Commit message (Collapse)AuthorAgeFilesLines
* Add libosinfo database and validation schema files for LibvirtManuel Bentele2021-05-041-0/+942
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 '/^<libosinfo version=/,/>$/p' "${FILES[0]}")" END="</libosinfo>" for FILE in "${FILES[@]}"; do CONTENT+="$(sed -n '/<os/,/<\/os>/p' "${FILE}")"$'\n' done echo -e "${START}\n${CONTENT}${END}" > \ src/main/resources/libvirt/libosinfo/xml/osinfo.xml