Debian Codegraph @

po/crowdin_id_update.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # Check if a file is provided as an argument
4 if [scip-shell system . . `[`. "$#" -ne 1 ]; then
5 echoscip-shell system . . echo. "Usage: $0 <filename>"
6 exit 1
7 fi
8
9 # Read the file line by line
10 while IFS= read -r line; do
11 crowdin_id=`javascip-shell system . . java. -jar build/4.8.0/crowdin-cli.jar string list -c .crowdin.yml --plain --croql="identifier contains \"$line\""`
12 echoscip-shell system . . echo. $crowdin_id
13 javascip-shell system . . java. -jar build/4.8.0/crowdin-cli.jar string edit $crowdin_id -c .crowdin.yml --text="$line"
14 done < "$1"