1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-26 08:45:25 +01:00
mastodon-app-ufficiale-ipho.../update_localization.sh

27 lines
707 B
Bash
Raw Normal View History

#!/bin/zsh
SRCROOT=`pwd`
2021-02-25 09:50:37 +01:00
PODS_ROOT='Pods'
echo ${SRCROOT}
# task1 generate strings file
cd ${SRCROOT}/Localization/StringsConvertor
sh ./scripts/build.sh
# task2 copy strings file /Localization/StringsConvertor/output to /Mastodon/Resources
cp -r ${SRCROOT}/Localization/StringsConvertor/output/ ${SRCROOT}/Mastodon/Resources/
# task3 swiftgen
cd ${SRCROOT}
2021-02-25 09:50:37 +01:00
echo "${PODS_ROOT}/SwiftGen/bin/swiftgen"
if [[ -f "${PODS_ROOT}/SwiftGen/bin/swiftgen" ]] then
"${PODS_ROOT}/SwiftGen/bin/swiftgen"
else
2021-02-25 09:50:37 +01:00
echo "Run 'pod install' or update your CocoaPods installation."
fi
#task4 clean temp file
rm -rf ${SRCROOT}/Localization/StringsConvertor/output
rm -rf ${SRCROOT}/Localization/StringsConvertor/input