1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 17:00:12 +01:00
fdroidserver/tests/extra/convert_metadata_to_yaml_then_txt.sh

15 lines
357 B
Bash
Raw Normal View History

#! /bin/bash
if [ ! -d metadata ]; then
echo 'no metadata directory present'
exit 1
fi
fdroid rewritemeta --to yml
fdroid rewritemeta --to txt
echo '## stripping maven, kivy, disable buildflags if they are set to "no"'
sed -i '/^ maven=no$/d' metadata/*.txt
sed -i '/^ kivy=no$/d' metadata/*.txt
sed -i '/^ disable=no$/d' metadata/*.txt