24 lines
311 B
Bash
Executable file
24 lines
311 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
QRC="images.qrc"
|
|
IMG_DIR="img"
|
|
|
|
cat <<EOF >"$QRC"
|
|
<!DOCTYPE RCC>
|
|
<RCC version="1.0">
|
|
<qresource>
|
|
EOF
|
|
|
|
find "$IMG_DIR" -type f | while IFS= read -r file; do
|
|
printf " <file>%s</file>\n" "$file" >>"$QRC"
|
|
done
|
|
|
|
cat <<EOF >>"$QRC"
|
|
</qresource>
|
|
</RCC>
|
|
|
|
<!-- vi: ft=xml
|
|
-->
|
|
EOF
|