mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
Add support for new files
This commit is contained in:
parent
a0dbddc6da
commit
83557583cb
1 changed files with 41 additions and 34 deletions
13
fd-commit
13
fd-commit
|
|
@ -30,7 +30,11 @@ if [ ! -d metadata ]; then
|
|||
fi
|
||||
|
||||
while read line; do
|
||||
if [[ "$line" == *M*metadata/*.txt ]]; then
|
||||
if [[ "$line" == *??*metadata/*.txt ]]; then
|
||||
new=true
|
||||
elif [[ "$line" == *M*metadata/*.txt ]]; then
|
||||
new=false
|
||||
fi
|
||||
file=${line##* }
|
||||
|
||||
id=${file##*/}
|
||||
|
|
@ -65,6 +69,9 @@ while read line; do
|
|||
fullname="$id"
|
||||
fi
|
||||
|
||||
if $new; then
|
||||
message="New app: $fullname"
|
||||
else
|
||||
onlybuild=true
|
||||
newbuild=false
|
||||
disable=false
|
||||
|
|
@ -97,11 +104,11 @@ while read line; do
|
|||
else
|
||||
message="$fullname:"
|
||||
fi
|
||||
fi
|
||||
|
||||
message=${message//\"/\\\"}
|
||||
commands+=("git add -- $file $extra && git commit -m \"$message\" -e -v")
|
||||
fi
|
||||
done < <(git status --porcelain)
|
||||
done < <(git status --porcelain metadata)
|
||||
|
||||
[[ -z $commands ]] && exit 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue