Generating a file list, for a Joomla Component XML info file

I’ve had to do some work for a company recently.
It involved me creating Joomla components and those annoying XML files, listing all the files and folders to install.
If you want a quick command to generate the xml, you can cd to the directory then run
find * -type f -exec  echo ‘’{}’’ \;
find * -type d -exec  echo ‘’{}’’ \;
Then you can copy the output from the terminal and paste between the files tags.

controller.php
css/test.css
views/test/tmpl/index.html
test.php
css
images
install_sql
models
player
views
views/user
views/user/tmpl
views/test
views/test/tmpl

I repeated this for the administrator/components/com_test and components/com_test folders