Skip to content

Commit

Permalink
script to clean up fastlane file format
Browse files Browse the repository at this point in the history
  • Loading branch information
eighthave committed Oct 6, 2020
1 parent c19e752 commit 9b48c77
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastlane/android/metadata/ro/short_description.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Protejează spațiile personale și bunurile fără a compromite intimitatea
Protejează spațiile personale și bunurile fără a compromite intimitatea
2 changes: 1 addition & 1 deletion fastlane/android/metadata/sr/short_description.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Zaštitite privatni prostor i lične stvari bez ugrožavanja privatnosti
Zaštitite privatni prostor i lične stvari bez ugrožavanja privatnosti
2 changes: 1 addition & 1 deletion fastlane/android/metadata/sr/title.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Haven
Haven
16 changes: 16 additions & 0 deletions tools/check-fastlane-whitespace.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python3

import glob
import os

os.chdir(os.path.join(os.path.dirname(__file__), '../fastlane/android'))
for f in glob.glob('metadata/*/*.txt') + glob.glob('metadata/*/*/*.txt'):
if os.path.getsize(f) == 0:
os.remove(f)
continue

with open(f) as fp:
data = fp.read()
with open(f, 'w') as fp:
fp.write(data.rstrip())
fp.write('\n')

0 comments on commit 9b48c77

Please sign in to comment.