--- a/mkqrc.sh Tue May 07 16:12:15 2013 +0300 +++ b/mkqrc.sh Tue May 07 17:51:10 2013 +0300 @@ -1,12 +1,23 @@ #!/bin/bash QRCFILE=ldforge.qrc +FILES=$(echo ./icons/*.* LICENSE) + printf "" > $QRCFILE printf "<!DOCTYPE RCC>\n<RCC version=\"1.0\">\n<qresource>\n" >> $QRCFILE -for img in ./icons/*.* ./docs/*.* LICENSE; do - printf "\t<file>$img</file>\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 \ No newline at end of file