mkqrc.sh@ee90c55dfeef
mkqrc.sh
Fri, 18 Oct 2013 17:57:42 +0300
- author
- Santeri Piippo <crimsondusk64@gmail.com>
- date
- Fri, 18 Oct 2013 17:57:42 +0300
- changeset 510
- ee90c55dfeef
- parent 455
-
c5d14d112034
- permissions
- -rwxr-xr-x
Fixed: LDForge would sometimes crash over unitialized data in the GL renderer. This crash sure eluded me for a while. Turned out zoomToFit(), which uses m_width and m_height is called before resizeGL() which initializes these variables. This data is used in an operator new[] call.
#!/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