From 042720d10b8a6d505a74d65065506f148698bc27 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sat, 7 Dec 2024 23:11:19 +0100 Subject: [PATCH] List items in qrc in alphabetical order --- generate_qrc.sh | 2 +- qml/images.qrc | 2 +- qml/qml.qrc | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/generate_qrc.sh b/generate_qrc.sh index 5efa043..760a124 100755 --- a/generate_qrc.sh +++ b/generate_qrc.sh @@ -17,7 +17,7 @@ generate_qrc() { EOF # Find all files with the given extension in the directory and add them to the QRC file - find "$dir" -type f -name "$pattern" | while IFS= read -r file; do + find "$dir" -type f -name "$pattern" | sort | while IFS= read -r file; do printf " %s\n" "$file" >>"$qrc_file" done diff --git a/qml/images.qrc b/qml/images.qrc index 9c838e5..782196f 100644 --- a/qml/images.qrc +++ b/qml/images.qrc @@ -1,6 +1,7 @@ + ../img/flip_icon.svg ../img/playing_cards/backs/abstract.svg ../img/playing_cards/backs/abstract_clouds.svg ../img/playing_cards/backs/abstract_scene.svg @@ -67,7 +68,6 @@ ../img/playing_cards/fronts/spades_jack.svg ../img/playing_cards/fronts/spades_king.svg ../img/playing_cards/fronts/spades_queen.svg - ../img/flip_icon.svg