File tree Expand file tree Collapse file tree 1 file changed +38
-23
lines changed Expand file tree Collapse file tree 1 file changed +38
-23
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ export GH_REPO=jamulussoftware/jamulus
3939
4040PR_LIST_LIMIT=300
4141TRANSLATION_ENTRY_TEXT=" GUI: Translations have been updated:"
42+ TRANSLATION_ENTRY_TEXT2=" Translations updated from Hosted Weblate"
43+ BUNDLED_QT_UPDATE_TEXT=" Build: Updated bundled Qt6"
44+ # must escape ( and ) so that sed doesn't treat them as magic
45+ BUNDLED_JACK_UPDATE_TEXT=" Build: Updated bundled JACK \\ (Windows-only\\ )"
46+ NSIS_UPDATE_TEXT=" Build: Updated Windows Installer base \\ (NSIS\\ )"
47+ ASIO_UPDATE_TEXT=" Build: Updated ASIO SDK \\ (Windows-only\\ )"
4248declare -A LANGS
4349LANGS[de_DE]=" German"
4450LANGS[fr_FR]=" French"
@@ -111,33 +117,42 @@ group_entries() {
111117
112118 # Prepend a number to known categories in order to make their sorting position consistent:
113119 category_order=(
120+ " Translation:"
121+ " $TRANSLATION_ENTRY_TEXT2 "
114122 " $TRANSLATION_ENTRY_TEXT "
115- " GUI"
116- " Accessibility"
117- " Client"
118- " Server"
119- " Recorder"
120- " Performance"
121- " CLI"
122- " Bug Fix"
123- " Windows"
124- " Installer"
125- " Linux"
126- " Mac"
127- " Android"
128- " iOS"
129- " Translation"
130- " Doc"
131- " Website"
132- " Github"
133- " Build"
134- " Autobuild"
135- " Code"
136- " Internal"
123+ " GUI:"
124+ " Accessibility:"
125+ " Client:"
126+ " Client/Server:"
127+ " Server:"
128+ " Recorder:"
129+ " Performance:"
130+ " CLI:"
131+ " Bug Fix:"
132+ " Windows:"
133+ " Installer:"
134+ " Linux:"
135+ " Mac:"
136+ " Android:"
137+ " iOS:"
138+ " Dependencies:"
139+ " Doc:"
140+ " Website:"
141+ " Github:"
142+ " $BUNDLED_QT_UPDATE_TEXT "
143+ " $BUNDLED_JACK_UPDATE_TEXT "
144+ " $NSIS_UPDATE_TEXT "
145+ " $ASIO_UPDATE_TEXT "
146+ " Build:"
147+ " Autobuild:"
148+ " Code:"
149+ " Internal:"
137150 )
138151 local index=0
139152 for category in " ${category_order[@]} " ; do
140- changelog=$( sed -re ' s/^(- ' " ${category} " ' )/' " ${index} " ' \1/' <<< " ${changelog}" )
153+ # use | as delimiter, as category may contain /
154+ # also re-add stripped newline from last line, for correct sorting
155+ changelog=$( sed -re ' s|^(- ' " ${category} " ' )|' " ${index} " ' \1|' <<< " ${changelog}" ) $' \n '
141156 index=$(( index + 1 ))
142157 done
143158
You can’t perform that action at this time.
0 commit comments