mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
fd-commit can now take app ids as filter; retab
This commit is contained in:
parent
e069da3562
commit
8acbc33f0d
2 changed files with 46 additions and 32 deletions
26
fd-commit
26
fd-commit
|
|
@ -8,13 +8,28 @@ while read line; do
|
|||
if [[ "$line" == *M*metadata/*.txt ]]; then
|
||||
file=${line##* }
|
||||
|
||||
while read l; do
|
||||
[[ "$l" == "Auto Name:"* ]] && name=${l##*:}
|
||||
done < "$file"
|
||||
|
||||
id=${file##*/}
|
||||
id=${id%.txt*}
|
||||
if [ $# -gt 0 ]; then
|
||||
found=false
|
||||
for arg in "$@"; do
|
||||
if [ "$id" == "$arg" ]; then
|
||||
found=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
$found || continue
|
||||
fi
|
||||
|
||||
[ -d metadata/$id ] && extra=metadata/$id
|
||||
|
||||
while read l; do
|
||||
if [[ "$l" == "Auto Name:"* ]]; then
|
||||
name=${l##*:}
|
||||
break
|
||||
fi
|
||||
done < "$file"
|
||||
|
||||
[ -n "$name" ] && id="$name ($id)"
|
||||
|
||||
newbuild=0
|
||||
|
|
@ -28,8 +43,7 @@ while read line; do
|
|||
fi
|
||||
done < <(git diff HEAD -- "$file")
|
||||
|
||||
if [ $newbuild -eq 0 ]
|
||||
then
|
||||
if [ $newbuild -eq 0 ]; then
|
||||
message="$id:"
|
||||
else
|
||||
message="Update $id to $version ($vercode)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue