git remote update -p
git checkout master
git reset --hard origin/master
+ git clean -fdx
cd ..
else
git clone --depth 1 https://gitlab.com/fdroid/fdroiddata.git fdroiddata
# publish process when building and signing are on separate machines
test -d repo || mkdir repo
test -d archive || mkdir archive
+# copy everything over to run on SIGN machine
../fdroid publish --verbose
../fdroid gpgsign --verbose
+# copy everything over to run on BUILD machine
../fdroid update --verbose --nosign
+# copy everything over to run on SIGN machine
../fdroid signindex --verbose
../fdroid rewritemeta --verbose