2022-11-11 16:01:27 +01:00
|
|
|
#!/bin/sh
|
2022-11-11 16:10:27 +01:00
|
|
|
|
|
|
|
#https://gist.github.com/praveen-palanisamy/31795f2680bc3ade04dd8d78d8651ee9
|
2022-11-12 02:40:47 +01:00
|
|
|
tree -I md5 -f --noreport --charset ascii | grep -vE "profiles|metadata|md5|Manifest|README|xml|repo_name|conf|directories|push|tree|LICENSE" | tail -n+2 > .tree-orig
|
|
|
|
tree -I md5 -f --noreport --charset ascii | grep -vE "profiles|metadata|md5|Manifest|README|xml|repo_name|conf|directories|push|tree|LICENSE" | sed -e 's/| \+/ /g' -e 's/[|`]-\+/ */g' -e 's:\(* \)\(\(.*/\)\([^/]\+\)\):\1[\4](\2):g' | tail -n+2 > .tree
|
2022-11-11 16:09:54 +01:00
|
|
|
|
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:22:49 +01:00
|
|
|
cat .tree >> README.md
|
2022-11-11 16:09:54 +01:00
|
|
|
|
2023-07-27 18:49:08 +02:00
|
|
|
pandoc --standalone README.md -o README.html
|
2022-11-11 16:09:54 +01:00
|
|
|
|
|
|
|
rm -f .tree .tree-orig
|
2022-11-22 20:50:06 +01:00
|
|
|
git add *
|
2023-03-09 17:39:25 +01:00
|
|
|
git commit -m "Update overlay" && git push --set-upstream origin main && printf "Successfully pushed\n"
|