If RFS has some content, show it
+ skip the pending branches
Sylvestre Ledru
4 years ago
0 | 0 | #!/bin/sh |
1 | 1 | for i in src/*/debian/RFS; do |
2 | basename $(dirname $(dirname $i)) | |
2 | pkg=$(basename $(dirname $(dirname $i))) | |
3 | if test -n "$(git --no-pager branch --remotes -l origin/pending-$pkg)"; then | |
4 | # If a pending branch exists, skip it | |
5 | continue | |
6 | fi | |
7 | echo $pkg | |
8 | # trim the content | |
9 | content=$(cat $i|xargs echo -n) | |
10 | if test -n "$content"; then | |
11 | echo "=> $content" | |
12 | fi | |
3 | 13 | done |