rofi-themes/update.sh
Dave Davenport e533dc022c updates
2015-12-10 21:22:20 +01:00

28 lines
777 B
Bash
Executable file

#!/usr/bin/env bash
git submodule update --init
# Empty file.
echo "" > README.md
# Fill it
echo "# Rofi Themes: " >> README.md
echo "" >> README.md
for a in *.theme
do
NAME=${a%.theme}
echo "# ${NAME}" >> README.md
./rofi/script/rofi-create-screenshot.sh "${a}" "${NAME}.png"
echo "## Screenshot" >> README.md
echo "![Screenshot](./${NAME}.png)" >> README.md
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