#!/bin/bash # --------------------------------------------------------------------------- # Copyright 2018, Robert Buj # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License at for # more details. # --------------------------------------------------------------------------- OUTPUT=gosdconfkeys.xml if [ ! -d "mate-desktop" ]; then git clone https://github.com/mate-desktop/mate-desktop.git fi cat << EOF > $OUTPUT
List of Dconf Keys of MATE Desktop EOF for file in mate-desktop/schemas/*.gschema.xml.in; do xsltproc gosdconfkeys.xsl $file >> $OUTPUT done cat << EOF >> $OUTPUT
EOF xmllint -format $OUTPUT > $OUTPUT.aux mv $OUTPUT.aux $OUTPUT