mkqrc.sh

Sat, 17 Aug 2013 00:02:17 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 17 Aug 2013 00:02:17 +0300
changeset 446
608948d27e57
parent 353
07b3753baedc
child 455
c5d14d112034
permissions
-rwxr-xr-x

::getIndex() should never return -1 if ::file() is not null so no check needed there..

#!/bin/bash

QRCFILE=ldforge.qrc
FILES=$(echo ./icons/*.* data/*.* LICENSE LICENSE.icons)

printf "" > $QRCFILE

printf "<!DOCTYPE RCC>\n<RCC version=\"1.0\">\n<qresource>\n" >> $QRCFILE

for f in $FILES; do
	printf "\t<file>$f</file>\n" >> $QRCFILE
done

printf "</qresource>\n</RCC>\n" >> $QRCFILE

mercurial