Codebase list rust-stfu8 / 76d43b1a-f3c3-4c95-a807-034b06669bb0/main dev / list-rfs.sh
76d43b1a-f3c3-4c95-a807-034b06669bb0/main

Tree @76d43b1a-f3c3-4c95-a807-034b06669bb0/main (Download .tar.gz)

list-rfs.sh @76d43b1a-f3c3-4c95-a807-034b06669bb0/mainraw · history · blame

#!/bin/bash
for i in src/*/debian/RFS; do
    echo "$(git log -1 --pretty="format:%ct" "$i")" "$i"
done | sort  | while read t i; do
    pkg=$(basename "$(dirname "$(dirname "$i")")")
    if test -n "$(git --no-pager branch --remotes -l origin/pending-"$pkg")"; then
        # If a pending branch exists, skip it
        continue
    fi
    echo -e "$(date -d@"$t") \e[32m$pkg\e[0m"
    if ! head -1 $(dirname "$i")/changelog |grep -q UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; then
        echo -e "\e[31mRFS but the first line of the changelog doesn't contain UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO\e[0m"
    fi
    if grep -q FIXME $(dirname "$i")/copyright; then
        echo -e "\e[31mRFS but still contains FIXME in debian/copyright\e[0m"
    fi
    # trim the content
    content=$(xargs '-d\n' echo -n < "$i")
    if test -n "$content"; then
        echo "  $content"
    fi
done