1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-05 06:50:10 +01:00
fdroidserver/tests/extra/convert_metadata_to_yaml_then_txt.sh

15 lines
357 B
Bash
Executable File

#! /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