Skip to content

Commit

Permalink
zip fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jerouris committed Sep 19, 2024
1 parent d43f629 commit 611384f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ docker run --rm -i -v $PROJECT:/src anskaffelser/validator:2.1.0 build -x -t -n
for sch in $PROJECT/rules/sch/*.sch; do
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/schematron:/target klakegg/schematron prepare /src/rules/sch/$(basename $sch) /target/$(basename $sch)
done
rm -rf /src/PEPPOLBIS-Upgrade-Schematron.zip
zip -r target/site/files/PEPPOLBIS-Upgrade-Schematron.zip target/schematron

# Fix ownership
docker run --rm -i -v $PROJECT:/src alpine:3.6 chown -R $(id -g $USER).$(id -g $USER) /src/target

rm -rf $PROJECT/target/site/files/PEPPOLBIS-Upgrade-Schematron.zip
zip -r $PROJECT/target/site/files/PEPPOLBIS-Upgrade-Schematron.zip target/schematron

# Example files
zip -r target/site/files/PEPPOLBIS-Examples.zip rules/examples
rm -rf $PROJECT/target/site/files/PEPPOLBIS-Examples.zip
zip -r $PROJECT/target/site/files/PEPPOLBIS-Examples.zip $PROJECT/rules/examples

# Guides
docker run --rm -i -v $PROJECT:/documents -v $PROJECT/target:/target difi/asciidoctor
Expand Down

0 comments on commit 611384f

Please sign in to comment.