Last active
January 8, 2020 14:49
-
-
Save letatas/221ea3d04e70996d026362de57c1b084 to your computer and use it in GitHub Desktop.
First script used to update intent definition localization strings files (usage can be found here: https://stackoverflow.com/questions/52659028/xcode-10-how-to-refresh-localization-of-a-siri-shortcut-intent-definiotion-fil)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
if [[ -z "$1" ]]; then | |
echo "Usage:\n\t$0 <FILE>\n" | |
exit 1 | |
fi | |
echo "👍 Processing $1" | |
last=$(mktemp) | |
git show HEAD:"$1" > "${last}" | |
dir=$(dirname "$0") | |
"${dir}"/update-strings-file.swift "${last}" "$1" | |
echo "✅ Process complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment