2021-02-25 08:46:32 +01:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
SRCROOT=`pwd`
|
2021-02-25 09:50:37 +01:00
|
|
|
PODS_ROOT='Pods'
|
|
|
|
|
2021-02-25 08:46:32 +01:00
|
|
|
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"
|
2021-02-25 08:46:32 +01:00
|
|
|
else
|
2021-02-25 09:50:37 +01:00
|
|
|
echo "Run 'pod install' or update your CocoaPods installation."
|
2021-02-25 08:46:32 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
#task4 clean temp file
|
|
|
|
rm -rf ${SRCROOT}/Localization/StringsConvertor/output
|