mkqrc.sh

Thu, 09 May 2013 03:58:51 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 09 May 2013 03:58:51 +0300
changeset 186
a130960bb220
parent 174
963697b36118
child 191
9bb6a17305ad
permissions
-rwxr-xr-x

Make quick color toolbar use QToolButtons, make color selector's process of making color icons a method and use that for generic color icons

#!/bin/bash

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

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;
	fi
done

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

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

mercurial