speedie-overlay/push.sh

11 lines
659 B
Bash
Raw Normal View History

2022-11-11 16:01:27 +01:00
#!/bin/sh
git add *
2022-11-11 16:07:33 +01:00
#tree -I md5 | grep -vE "profiles|metadata|md5|Manifest|README|xml|repo_name|conf|directories|push" > .tree
tree -I md5 | grep -vE "profiles|metadata|md5|Manifest|README|xml|repo_name|conf|directories|push" | sed -e 's/| \+/ /g' -e 's/[|`]-\+/ */g' -e 's:\(* \)\(\(.*/\)\([^/]\+\)\):\1[\4](\2):g' -e 's/^\( \* \)/├──/gm' -e 's/^\( \* \)/ └──/gm' -e 's/^\( \* \)/ └──/gm' > .tree
2022-11-11 16:01:27 +01:00
cp -f README.tp.md README.md
printf "\n## List of all ebuilds\n" >> README.md
cat .tree >> README.md
markdown README.md > README.html
rm -f .tree
git commit -m "Update overlay" && git push && printf "Successfully pushed\n"