mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
355 B
Bash
28 lines
355 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
function usage() {
|
|
cat <<EOS
|
|
Extracts string from target file to new.strings
|
|
|
|
$0 <filename.m>
|
|
|
|
e.g.
|
|
|
|
$0 path/to/my/ClassName.m
|
|
EOS
|
|
}
|
|
|
|
TARGET=$1
|
|
if [[ -z $TARGET ]]
|
|
then
|
|
echo "Can't proceed without target"
|
|
usage
|
|
exit 1
|
|
fi
|
|
|
|
OUTPUT_DIR=new_strings
|
|
mkdir -p "${OUTPUT_DIR}"
|
|
genstrings -o "${OUTPUT_DIR}" "${TARGET}"
|