X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=make.sh;h=d197701130c0ff775e56d656432b454323401616;hp=948bc6ed3af97dd39eb8a38e799ffa4cb7501e2f;hb=faa5472a2e75d69946c8321f09ee5c34f601d73b;hpb=4e9000b4d8435d952cca982020ca70f8d64b45ec diff --git a/make.sh b/make.sh index 948bc6ed3a..d197701130 100755 --- a/make.sh +++ b/make.sh @@ -871,6 +871,28 @@ update_language_list() { done | sort -u > "${path}/LINGUAS" } +contributors() { + local commits name + + git shortlog --summary --numbered | while read -r commits name; do + echo "${name}" + done | grep -vE -e "^(alpha197|morlix|root|ummeegge)$" -e "via Development$" -e "@" -e "#$" +} + +update_contributors() { + echo -n "Updating list of contributors" + + local contributors="$(contributors | paste -sd , - | sed -e "s/,/&\\\\n/g")" + + # Edit contributors into credits.cgi + awk -i inplace \ + "//{ p=1; print; printf \"${contributors}\n\"}//{ p=0 } !p" \ + "${BASEDIR}/html/cgi-bin/credits.cgi" + + print_status DONE + return 0 +} + # Load configuration file if [ -f .config ]; then . .config @@ -1093,7 +1115,7 @@ buildipfire() { lfsmake2 elfutils case "${BUILD_ARCH}" in - x86_64) + x86_64|aarch64) lfsmake2 linux KCFG="" # lfsmake2 backports KCFG="" # lfsmake2 e1000e KCFG="" @@ -1307,6 +1329,7 @@ buildipfire() { lfsmake2 dbus lfsmake2 intltool lfsmake2 libdaemon + lfsmake2 avahi lfsmake2 cups lfsmake2 lcms2 lfsmake2 ghostscript @@ -1323,7 +1346,6 @@ buildipfire() { lfsmake2 mc lfsmake2 wget lfsmake2 bridge-utils -# lfsmake2 screen lfsmake2 smartmontools lfsmake2 htop lfsmake2 chkconfig @@ -1467,6 +1489,17 @@ buildipfire() { lfsmake2 python-progressbar lfsmake2 python-xattr lfsmake2 ddns + lfsmake2 python3-six + lfsmake2 python3-dateutil + lfsmake2 python3-jmespath + lfsmake2 python3-colorama + lfsmake2 python3-docutils + lfsmake2 python3-yaml + lfsmake2 python3-s3transfer + lfsmake2 python3-rsa + lfsmake2 python3-pyasn1 + lfsmake2 python3-botocore + lfsmake2 aws-cli lfsmake2 transmission lfsmake2 dpfhack lfsmake2 lcd4linux @@ -1865,8 +1898,11 @@ lang) update_language_list ${BASEDIR}/src/setup/po print_status DONE ;; +update-contributors) + update_contributors + ;; *) - echo "Usage: $0 {build|changelog|clean|gettoolchain|downloadsrc|shell|sync|toolchain}" + echo "Usage: $0 {build|changelog|clean|gettoolchain|downloadsrc|shell|sync|toolchain|update-contributors}" cat doc/make.sh-usage ;; esac