speedie-overlay/push.sh

18 lines
794 B
Bash
Raw Normal View History

2022-11-11 16:01:27 +01:00
#!/bin/sh
git add *
2022-11-11 16:09:54 +01:00
tree -I md5 | grep -vE "profiles|metadata|md5|Manifest|README|xml|repo_name|conf|directories|push|tree" > .tree-orig
tree -I md5 | grep -vE "profiles|metadata|md5|Manifest|README|xml|repo_name|conf|directories|push|tree" | 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
2022-11-11 16:09:54 +01:00
cat .tree-orig >> README.md
2022-11-11 16:01:27 +01:00
markdown README.md > README.html
2022-11-11 16:09:54 +01:00
cp -f README.tp.md README.md
printf "\n## List of all ebuilds\n" >> README.md
cat .tree >> README.md
rm -f .tree .tree-orig
2022-11-11 16:01:27 +01:00
git commit -m "Update overlay" && git push && printf "Successfully pushed\n"