diff --git a/Makefile b/Makefile index 29aca7c7ab845545413fd4f2ef1fd7167ddd7744..427f758464326afa20479afdba5ab474008c7289 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ apply: translate: cache/bjcp-2015-styleguide-de-auto.xml cache/bjcp-2015-styleguide-de-auto.xml: - if [ "$$GOOGLE_APPLICATION_CREDENTIALS" ] ; then cat bjcp-2015-styleguide-orig.xml | ./translate | xmllint --format - > cache/bjcp-2015-styleguide-de-auto.xml ; else curl -s https://familie-steinberg.org/bjcp-styleguide/bjcp-2015-styleguide-de-auto.xml > cache/bjcp-2015-styleguide-de-auto.xml ; fi + if [ "$$GOOGLE_APPLICATION_CREDENTIALS" ] ; then cat bjcp-2015-styleguide-orig.xml | ./translate | xmllint --format - > cache/bjcp-2015-styleguide-de-auto.xml ; else if [ `hostname` != "zbox" ; then curl -s https://familie-steinberg.org/bjcp-styleguide/bjcp-2015-styleguide-de-auto.xml > cache/bjcp-2015-styleguide-de-auto.xml ; fi ; fi delete-glossary: curl -X DELETE -H "Authorization: Bearer "`gcloud auth application-default print-access-token` https://translation.googleapis.com/v3beta1/projects/$(PROJECTID)/locations/$(LOCATION)/glossaries/$(GLOSSARYID)