Add zotero-build repo as scripts
folder
Minus obsolete 4.0 files
This commit is contained in:
parent
a3d7b58b83
commit
fb2b874614
20 changed files with 1596 additions and 26 deletions
30
scripts/locale/connector_to_client
Executable file
30
scripts/locale/connector_to_client
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
connector_dir=${1:-}
|
||||
client_dir=${2:-}
|
||||
|
||||
if [[ -z "$connector_dir" ]]; then
|
||||
connector_dir=~/zotero-connectors
|
||||
fi
|
||||
|
||||
if [[ -z "$client_dir" ]]; then
|
||||
client_dir=~/zotero-client
|
||||
fi
|
||||
|
||||
json_file=$connector_dir/src/messages.json
|
||||
client_dir=$client_dir/chrome/locale
|
||||
|
||||
if [ ! -e "$json_file" ]; then
|
||||
echo "$json_file does not exist" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$client_dir" ]; then
|
||||
echo "$client_dir is not a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp $json_file $client_dir/en-US/zotero/connector.json
|
||||
cd $client_dir
|
||||
git diff
|
Loading…
Add table
Add a link
Reference in a new issue