Skip to content

Commit

Permalink
copy
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 21, 2024
1 parent 0a32159 commit 108ec0c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ RUN gem install judges:0.0.31 \
&& curl -sL -o /usr/local/Saxon.jar \
https://repo.maven.apache.org/maven2/net/sf/saxon/Saxon-HE/9.8.0-5/Saxon-HE-9.8.0-5.jar

RUN make

WORKDIR /home
COPY entry.sh /home
COPY xsl /home/xsl
COPY target/css /home/target/css
COPY target/xsl /home/target/xsl

ENTRYPOINT ["/home/entry.sh"]
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ YAMLS = $(wildcard tests/*.yml)
FBS = $(subst tests/,target/fb/,${YAMLS:.yml=.fb})
HTMLS = $(subst fb/,html/,${FBS:.fb=.html})
JUDGES = judges
DIRS = target target/html target/fb
DIRS = target target/html target/fb target/xsl target/css

export

all: $(HTMLS)
all: target/css/main.css target/xsl/index.xsl test

test: $(HTMLS)

target/xsl/index.xsl: target/xsl
cp xsl/*.xsl target/xsl

target/html/%.html: target/fb/%.fb xsl/*.xsl entry.sh Makefile target/css/main.css | target/html
export INPUT_VERBOSE=yes
Expand Down
2 changes: 1 addition & 1 deletion entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ done
css=$(cat target/css/main.css)
java -jar ${SAXON} \
"-s:${INPUT_OUTPUT}/${name}.xml" \
"-xsl:xsl/index.xsl" \
"-xsl:target/xsl/index.xsl" \
"-o:${INPUT_OUTPUT}/${name}.html" \
"version=${VERSION}" \
"name=${name}" \
Expand Down

0 comments on commit 108ec0c

Please sign in to comment.