replace README on morph

This commit is contained in:
numzero 2026-07-04 22:45:54 +03:00
parent af79b01fff
commit d7c5b34645

View File

@ -54,6 +54,9 @@ git remote remove origin
git rm --cached init.sh git rm --cached init.sh
git rm -r skel-test git rm -r skel-test
# replace the README with a stub
echo "# $name" >| README.md
# escape HTML special characters (&, <, and >), but also sed special characters (& again, \, and /) # escape HTML special characters (&, <, and >), but also sed special characters (& again, \, and /)
htmlname=$(echo -n "$name" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s:[\\/&]:\\&:g') htmlname=$(echo -n "$name" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s:[\\/&]:\\&:g')
sed -i "s/PROJECT NAME/$htmlname/" ui/src/main_window.ui sed -i "s/PROJECT NAME/$htmlname/" ui/src/main_window.ui