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

Minor.

parent 41c9db1e
Branches
No related tags found
No related merge requests found
...@@ -48,6 +48,10 @@ check: bjcp-2015-styleguide-orig.xml bjcp-2015-styleguide-de.xml ...@@ -48,6 +48,10 @@ check: bjcp-2015-styleguide-orig.xml bjcp-2015-styleguide-de.xml
@xmllint --noout --schema xsd/bjcp-styleguide-2015.xsd bjcp-2015-styleguide-orig.xml @xmllint --noout --schema xsd/bjcp-styleguide-2015.xsd bjcp-2015-styleguide-orig.xml
@xmllint --noout --schema xsd/bjcp-styleguide-2015.xsd bjcp-2015-styleguide-de.xml @xmllint --noout --schema xsd/bjcp-styleguide-2015.xsd bjcp-2015-styleguide-de.xml
background:
@echo "updating in the background..."
@if [ ! -e .background ] ; then touch .background ; rm -f .background-again bjcp-2015-styleguide-de.xml web/edit.html ; make web/edit.html ; rm .background ; if [ -e .background-again ] ; then rm bjcp-2015-styleguide-de.xml web/edit.html ; make background ; fi ; else touch .background-again ; fi &
install: install:
ssh z "cd /var/www ; if [ -d bjcp-2015-styleguide ] ; then cd bjcp-2015-styleguide ; git pull ; else git clone https://github.com/frsteinb/bjcp-2015-styleguide.git ; cd bjcp-2015-styleguide ; mkdir web/snippets ; sudo chgrp -R www-data . ; sudo chmod g+ws . web web/snippets ; make ; fi" ssh z "cd /var/www ; if [ -d bjcp-2015-styleguide ] ; then cd bjcp-2015-styleguide ; git pull ; else git clone https://github.com/frsteinb/bjcp-2015-styleguide.git ; cd bjcp-2015-styleguide ; mkdir web/snippets ; sudo chgrp -R www-data . ; sudo chmod g+ws . web web/snippets ; make ; fi"
......
...@@ -113,18 +113,16 @@ if os.path.isfile(translatedfilename): ...@@ -113,18 +113,16 @@ if os.path.isfile(translatedfilename):
log("updating translation file %s/%s.xml based on snippet" % (LANG, id)) log("updating translation file %s/%s.xml based on snippet" % (LANG, id))
cmd = "xsltproc --stringparam snippet %s %s/xsl/bjcp-2015-styleguide-merge.xsl %s > %s.tmp ; mv %s.tmp %s" % (snippetfilename, DIR, translatedfilename, translatedfilename, translatedfilename, translatedfilename) cmd = "xsltproc --stringparam snippet %s %s/xsl/bjcp-2015-styleguide-merge.xsl %s > %s.tmp ; mv %s.tmp %s" % (snippetfilename, DIR, translatedfilename, translatedfilename, translatedfilename, translatedfilename)
os.system(cmd) os.system(cmd)
log("updating all files (may take a minute)") log("updating files in the background...")
cmd = "make -C %s" % DIR cmd = "make -C %s background" % DIR
os.system(cmd) os.system(cmd)
log("done")
elif os.path.isfile(origfilename): elif os.path.isfile(origfilename):
log("creating new translation file %s/%s.xml from orig/%s.xml and snippet" % (LANG, id, id)) log("creating new translation file %s/%s.xml from orig/%s.xml and snippet" % (LANG, id, id))
cmd = "xsltproc --stringparam snippet %s %s/xsl/bjcp-2015-styleguide-merge.xsl %s > %s" % (snippetfilename, DIR, origfilename, translatedfilename) cmd = "xsltproc --stringparam snippet %s %s/xsl/bjcp-2015-styleguide-merge.xsl %s > %s" % (snippetfilename, DIR, origfilename, translatedfilename)
os.system(cmd) os.system(cmd)
log("updating all files (may take a minute)") log("updating files in the background...")
cmd = "nohup make -C %s &" % DIR cmd = "make -C %s background" % DIR
os.system(cmd) os.system(cmd)
log("done")
else: else:
log("neither orig file %s nor translated file %s for id %s exists" % (origfilename, translatedfilename, id)) log("neither orig file %s nor translated file %s for id %s exists" % (origfilename, translatedfilename, id))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment