2015-12-10 21:13:02 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
git submodule update --init
|
|
|
|
|
2015-12-10 21:20:41 +01:00
|
|
|
# Empty file.
|
|
|
|
echo "" > README.md
|
|
|
|
|
|
|
|
# Fill it
|
2015-12-10 21:13:02 +01:00
|
|
|
echo "# Rofi Themes: " >> README.md
|
|
|
|
echo "" >> README.md
|
|
|
|
for a in *.theme
|
|
|
|
do
|
|
|
|
NAME=${a%.theme}
|
|
|
|
echo "# ${NAME}"
|
|
|
|
./rofi/script/rofi-create-screenshot.sh "${a}" "${NAME}.png"
|
|
|
|
echo "## Screenshot" >> README.md
|
2015-12-10 21:20:41 +01:00
|
|
|
echo "![Screenshot](./${NAME}.png)" >> README.md
|
2015-12-10 21:13:02 +01:00
|
|
|
echo "## XResources" >> README.md
|
|
|
|
echo "\`\`\`" >> README.md
|
|
|
|
cat "${a}" >> README.md
|
|
|
|
echo "\`\`\`" >> README.md
|
|
|
|
|
|
|
|
git add "${NAME}.png"
|
|
|
|
git add "${a}"
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
git add README.md
|