From d0cd3ad4785d2ce3d3cb9b6dbac9e9441014ff1d Mon Sep 17 00:00:00 2001 From: kay27 Date: Mon, 18 Jul 2022 03:10:00 +0300 Subject: [PATCH] Update credits --- mods/HUD/mcl_credits/CONTRUBUTOR_LIST.txt | 10 +++++++++- mods/HUD/mcl_credits/README.md | 6 +----- tools/update_credits.sh | 21 +++++++++++++++++++++ 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100755 tools/update_credits.sh diff --git a/mods/HUD/mcl_credits/CONTRUBUTOR_LIST.txt b/mods/HUD/mcl_credits/CONTRUBUTOR_LIST.txt index 561952adc..520d18254 100644 --- a/mods/HUD/mcl_credits/CONTRUBUTOR_LIST.txt +++ b/mods/HUD/mcl_credits/CONTRUBUTOR_LIST.txt @@ -6,6 +6,7 @@ Alexander Minges aligator ArTee3 Artem Arbatsky +balazsszalab basxto Benjamin Schötz Blue Blancmange @@ -13,6 +14,7 @@ Booglejr Brandon Bu-Gee bzoss +CableGuy67 chmodsayshello Code-Sploit cora @@ -31,6 +33,7 @@ Emojigit epCode erlehmann FinishedFragment +FlamingRCCars Glaucos Ginez Gustavo Ramos Rehermann Guy Liner @@ -39,6 +42,7 @@ HimbeerserverDE iliekprogrammar j1233 Jared Moody +Johannes Fritz jordan4ibanez kabou kay27 @@ -46,13 +50,14 @@ Laurent Rocher Li0n marcin-serwin Marcin Serwin +Mark Roth Mental-Inferno Midgard MysticTempest Nicholas Niro nickolas360 Nicu -nikolaus-albinger +Niklp Nils Dagsson Moskopp NO11 NO411 @@ -60,6 +65,7 @@ Oil_boi pitchum PrairieAstronomer PrairieWind +River River Rocher Laurent rootyjr Rootyjr @@ -68,6 +74,7 @@ Sab Pyrope Saku Laesvuori sfan5 SmallJoker +Sumyjkl superfloh247 Sven792 Sydney Gems @@ -75,6 +82,7 @@ talamh TechDudie Thinking Tianyang Zhang +unknown U.N.Owen Wouters Dorian wuniversales diff --git a/mods/HUD/mcl_credits/README.md b/mods/HUD/mcl_credits/README.md index 3d76497d0..af422588e 100644 --- a/mods/HUD/mcl_credits/README.md +++ b/mods/HUD/mcl_credits/README.md @@ -1,8 +1,4 @@ -Please run the following command to update contributor list: - -```bash -# git log --pretty="%an" | sort | uniq >CONTRUBUTOR_LIST.txt -``` +Please run `./update_credits.sh` from [tools](../../../tools) folder to update contributor list. Please check that there is no error on execution, and `CONTRUBUTOR_LIST.txt` is updated. diff --git a/tools/update_credits.sh b/tools/update_credits.sh new file mode 100755 index 000000000..4c746bf2c --- /dev/null +++ b/tools/update_credits.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# + +TMP_FILE=$(mktemp /tmp/mcl5.XXXXXXXX) + +git --version 2>/dev/null 1>/dev/null +IS_GIT_AVAILABLE=$? +if [ $IS_GIT_AVAILABLE -ne 0 ]; then + echo "Please install git!\n\n" +fi + +`git log --pretty="%an" 1>$TMP_FILE 2>/dev/null` +IS_GIT_REPO=$? +if [ $IS_GIT_REPO -ne 0 ]; then + echo "You have to be inside a git repo to update CONTRUBUTOR_LIST.txt\n\n" +fi + +# Edit names here: +sed -i 's/nikolaus-albinger/Niklp/g' $TMP_FILE + +cat $TMP_FILE | sort | uniq >../mods/HUD/mcl_credits/CONTRUBUTOR_LIST.txt