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
34
scripts/update-citeproc.sh
Executable file
34
scripts/update-citeproc.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
ZOTEROSRC="../zotero"
|
||||
if [ -e "./config.sh" ]; then
|
||||
. ./config.sh
|
||||
fi
|
||||
|
||||
tag=master
|
||||
if [ -n "$1" ]; then
|
||||
tag=$1
|
||||
fi
|
||||
echo Downloading tag $tag
|
||||
sleep 2
|
||||
|
||||
outFile="$ZOTEROSRC/chrome/content/zotero/xpcom/citeproc.js"
|
||||
|
||||
if [ ! -e "$outFile" ]; then
|
||||
>&2 echo "$outFile not found. Looking for Zotero source in $(readlink -f $ZOTEROSRC)"
|
||||
exit 78 # EX_CONFIG: configuration error (from sysexits.h)
|
||||
fi
|
||||
|
||||
curl -f https://raw.githubusercontent.com/Juris-M/citeproc-js/$tag/citeproc.js > "$outFile"
|
||||
|
||||
echo
|
||||
|
||||
if [ `command -v acorn` ]; then
|
||||
echo "Verifying file..."
|
||||
acorn --silent "$outFile"
|
||||
if [ $? = 0 ]; then
|
||||
echo "OK"
|
||||
fi
|
||||
else
|
||||
echo "Warning: acorn isn't installed -- not verifying file"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue