rcc.sh 393 B

123456789101112131415161718
  1. #!/bin/bash
  2. # qt's rcc need to run in the same directory as the .qrc file, that's why this
  3. # script.
  4. # Get into the project root
  5. cd $(dirname "${BASH_SOURCE}"); cd ..
  6. ROOT=$1 # theme root (relative to project root)
  7. QRC=$2 # theme it's .qrc file
  8. RCC="${QRC%.*}.rcc" # the output .rcc file
  9. # Get into the theme root
  10. cd "$ROOT"
  11. # Compile the resource
  12. rcc --binary "$QRC" -o "$RCC"
  13. exit $?