Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bjcp-2015-styleguide
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frank Steinberg
bjcp-2015-styleguide
Commits
ec972309
Commit
ec972309
authored
5 years ago
by
Frank Steinberg
Browse files
Options
Downloads
Patches
Plain Diff
Fixes.
parent
c3c98226
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
web/edit.js
+1
-0
1 addition, 0 deletions
web/edit.js
web/save.cgi
+9
-5
9 additions, 5 deletions
web/save.cgi
xsl/bjcp-2015-styleguide-split.xsl
+1
-1
1 addition, 1 deletion
xsl/bjcp-2015-styleguide-split.xsl
with
12 additions
and
7 deletions
Makefile
+
1
−
1
View file @
ec972309
...
@@ -51,7 +51,7 @@ check: bjcp-2015-styleguide-orig.xml bjcp-2015-styleguide-de.xml
...
@@ -51,7 +51,7 @@ check: bjcp-2015-styleguide-orig.xml bjcp-2015-styleguide-de.xml
install
:
bjcp-2015-styleguide-de-edit.html
install
:
bjcp-2015-styleguide-de-edit.html
ssh z
"if [ ! -d /var/www/bjcp-styleguide ] ; then sudo mkdir /var/www/bjcp-styleguide ; sudo chown frank.www-data /var/www/bjcp-styleguide ; sudo chmod u+rwx,g+rwxs /var/www/bjcp-styleguide ; touch /var/www/bjcp-styleguide/logfile ; mkdir /var/www/bjcp-styleguide/snippets; fi"
ssh z
"if [ ! -d /var/www/bjcp-styleguide ] ; then sudo mkdir /var/www/bjcp-styleguide ; sudo chown frank.www-data /var/www/bjcp-styleguide ; sudo chmod u+rwx,g+rwxs /var/www/bjcp-styleguide ; touch /var/www/bjcp-styleguide/logfile ; mkdir /var/www/bjcp-styleguide/snippets; fi"
scp bjcp-2015-styleguide-de-edit.html web/bjcp-styleguide.css web/edit.css web/edit.js web/pell.css web/pell.js web/save.cgi z:/var/www/bjcp-styleguide/
scp bjcp-2015-styleguide-de-edit.html web/bjcp-styleguide.css web/edit.css web/edit.js web/pell.css web/pell.js web/save.cgi z:/var/www/bjcp-styleguide/
ssh z
"cd /var/www/bjcp-styleguide ; rm -rf bjcp-2015-styleguide ; git clone https://github.com/frsteinb/bjcp-2015-styleguide.git ; cd bjcp-2015-styleguide ; make"
ssh z
"cd /var/www/bjcp-styleguide ; rm -rf bjcp-2015-styleguide ; git clone https://github.com/frsteinb/bjcp-2015-styleguide.git ; cd bjcp-2015-styleguide ; make
bjcp-2015-styleguide-orig.xml
"
clean
:
clean
:
@
rm
-rf
orig
@
rm
-rf
orig
...
...
This diff is collapsed.
Click to expand it.
web/edit.js
+
1
−
0
View file @
ec972309
...
@@ -120,6 +120,7 @@ function dosave() {
...
@@ -120,6 +120,7 @@ function dosave() {
xhr
.
onreadystatechange
=
function
()
{
xhr
.
onreadystatechange
=
function
()
{
if
(
xhr
.
readyState
===
4
)
{
if
(
xhr
.
readyState
===
4
)
{
editor
.
style
.
display
=
"
none
"
;
editor
.
style
.
display
=
"
none
"
;
editelem
.
innerHTML
=
x
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
web/save.cgi
+
9
−
5
View file @
ec972309
...
@@ -11,8 +11,8 @@ import datetime
...
@@ -11,8 +11,8 @@ import datetime
DIR
=
"
/var/www/bjcp-styleguide
"
DIR
=
"
/var/www/bjcp-styleguide
"
LOGFILE
=
"
%s/logfile
"
%
DIR
LOGFILE
=
"
%s/logfile
"
%
DIR
SNIPPETDIR
=
"
/var/www/bjcp-styleguide
/snippets
"
SNIPPETDIR
=
"
%s
/snippets
"
%
DIR
REPODIR
=
"
/var/www/bjcp-styleguide
/bjcp-2015-styleguide
"
REPODIR
=
"
%s
/bjcp-2015-styleguide
"
%
DIR
LANG
=
"
de
"
LANG
=
"
de
"
...
@@ -111,13 +111,17 @@ origfilename = "%s/orig/%s.xml" % (REPODIR, id)
...
@@ -111,13 +111,17 @@ origfilename = "%s/orig/%s.xml" % (REPODIR, id)
translatedfilename
=
"
%s/%s/%s.xml
"
%
(
REPODIR
,
LANG
,
id
)
translatedfilename
=
"
%s/%s/%s.xml
"
%
(
REPODIR
,
LANG
,
id
)
if
os
.
path
.
isfile
(
translatedfilename
):
if
os
.
path
.
isfile
(
translatedfilename
):
log
(
"
cre
ating
new
translation file %s/%s.xml
from orig/%s.xml and
snippet
"
%
(
LANG
,
id
,
id
))
log
(
"
upd
ating 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
,
REPODIR
,
translatedfilename
,
translatedfilename
,
translatedfilename
,
translatedfilename
)
cmd
=
"
xsltproc --stringparam snippet %s %s/xsl/bjcp-2015-styleguide-merge.xsl %s > %s.tmp ; mv %s.tmp %s
"
%
(
snippetfilename
,
REPODIR
,
translatedfilename
,
translatedfilename
,
translatedfilename
,
translatedfilename
)
os
.
system
(
cmd
)
os
.
system
(
cmd
)
if
os
.
path
.
isfile
(
origfilename
):
cmd
=
"
make -C %s && cp %s/bjcp-2015-styleguide-de-edit.html %s/bjcp-2015-styleguide-de-edit.html
"
%
(
REPODIR
,
REPODIR
,
DIR
)
log
(
"
updating translation file %s/%s.xml based on snippet
"
%
(
LANG
,
id
))
os
.
system
(
cmd
)
elif
os
.
path
.
isfile
(
origfilename
):
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
,
REPODIR
,
origfilename
,
translatedfilename
)
cmd
=
"
xsltproc --stringparam snippet %s %s/xsl/bjcp-2015-styleguide-merge.xsl %s > %s
"
%
(
snippetfilename
,
REPODIR
,
origfilename
,
translatedfilename
)
os
.
system
(
cmd
)
os
.
system
(
cmd
)
cmd
=
"
make -C %s && cp %s/bjcp-2015-styleguide-de-edit.html %s/bjcp-2015-styleguide-de-edit.html
"
%
(
REPODIR
,
REPODIR
,
DIR
)
os
.
system
(
cmd
)
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
))
...
...
This diff is collapsed.
Click to expand it.
xsl/bjcp-2015-styleguide-split.xsl
+
1
−
1
View file @
ec972309
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
<!-- suppress these tags in translations -->
<!-- suppress these tags in translations -->
<xsl:template
match=
"
tags|
specs"
>
<xsl:template
match=
"
bjcp:tags|bjcp:
specs"
>
</xsl:template>
</xsl:template>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment