mkqrc.sh

Wed, 22 May 2013 22:20:06 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Wed, 22 May 2013 22:20:06 +0300
changeset 245
f6b664f0d16b
parent 241
cffab8e109f6
child 293
a0ed563e14b2
permissions
-rwxr-xr-x

Added tag v0.1-alpha for changeset 3125c2a1a9ba

#!/bin/bash

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

printf "" > $QRCFILE

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

# Make sure that whatever goes to QRC is added to the repo.
# I keep forgetting to do this myself.
for line in $(hg status $FILES |grep "?"); do
	if [ "$line" != "?" ]; then
		echo "hg add $line"
		hg add $line;
		
		echo "pngout $line"
		pngout $line
	fi
done

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

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

mercurial