Skip to content
Snippets Groups Projects
Commit 1685393f authored by Frank Steinberg's avatar Frank Steinberg
Browse files

Portability fixes.

parent f0e9f50f
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,7 @@ apply: ...@@ -100,7 +100,7 @@ apply:
translate: cache/bjcp-2015-styleguide-de-auto.xml translate: cache/bjcp-2015-styleguide-de-auto.xml
cache/bjcp-2015-styleguide-de-auto.xml: cache/bjcp-2015-styleguide-de-auto.xml:
cat bjcp-2015-styleguide-orig.xml | ./translate | xmllint --format - > 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
delete-glossary: 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) curl -X DELETE -H "Authorization: Bearer "`gcloud auth application-default print-access-token` https://translation.googleapis.com/v3beta1/projects/$(PROJECTID)/locations/$(LOCATION)/glossaries/$(GLOSSARYID)
......
...@@ -12,7 +12,8 @@ import subprocess ...@@ -12,7 +12,8 @@ import subprocess
DIR = "/var/www/bjcp-2015-styleguide" #DIR = "/var/www/bjcp-2015-styleguide"
DIR = "%s/.." % os.environ["CONTEXT_DOCUMENT_ROOT"]
LOGFILE = "%s/web/logfile" % DIR LOGFILE = "%s/web/logfile" % DIR
SNIPPETDIR = "%s/web/snippets" % DIR SNIPPETDIR = "%s/web/snippets" % DIR
LANG = "de" LANG = "de"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment