Skip to content

Instantly share code, notes, and snippets.

@nbigaouette
Created January 20, 2016 14:28
Show Gist options
  • Save nbigaouette/c0cbdeac54e8a23a3d0b to your computer and use it in GitHub Desktop.
Save nbigaouette/c0cbdeac54e8a23a3d0b to your computer and use it in GitHub Desktop.
#!/bin/sh
echo '<RCC>
<qresource prefix="/">'
cwd=$(pwd)
cd qml-material/modules
subdir=$(pwd | sed "s|${cwd}/||g")
find Material/ -name 'qmldir' | sort | sed "s|\(.*\)| <file alias=\"\1\">${subdir}/\1</file>|g"
echo ''
find Material/ -name '*.qml' | sort | sed "s|\(.*\)| <file alias=\"\1\">${subdir}/\1</file>|g"
echo ''
# Don't include Font Awesome javascript file in here.
find Material/ -name '*.js' | sort | sed "s|\(.*\)| <file alias=\"\1\">${subdir}/\1</file>|g" | grep -v awesome.js
echo ' </qresource>
</RCC>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment