/admin/gen_resources.sh

http://github.com/tomahawk-player/tomahawk · Shell · 13 lines · 9 code · 3 blank · 1 comment · 1 complexity · b9862bccb5ff9f4102223ba66edf2efc MD5 · raw file

  1. #!/bin/bash
  2. echo "<!DOCTYPE RCC><RCC version=\"1.0\"><qresource>"
  3. datadir="`pwd`/data"
  4. cd "$datadir"
  5. (find -type f | sed 's/^\.\///g') | while read f
  6. do
  7. ff="${datadir}/$f"
  8. echo "<file alias=\"$f\">$ff</file>"
  9. done
  10. echo "</qresource></RCC>"