Skip to content

Commit

Permalink
Fix script for generating entities
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Nov 26, 2020
1 parent 07d18bf commit 178e5a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions make/genclasses
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/bin/bash

CURRENTUSER=$(id -u -n)

if [ "$CURRENTUSER" != "www-data" ]; then
echo "Not the right user"
exit 1
fi

./../vendor/bin/xsd2php convert ./config_extended.yml ./../src/schema/FACTUR-X_EXTENDED.xsd -vvv
./../vendor/bin/xsd2php convert ./config_en16931.yml ./../src/schema/FACTUR-X_EN16931.xsd -vvv
./../vendor/bin/xsd2php convert ./config_basic.yml ./../src/schema/FACTUR-X_BASIC.xsd -vvv
./../vendor/bin/xsd2php convert ./config_basic_wl.yml ./../src/schema/FACTUR-X_BASIC-WL.xsd -vvv

0 comments on commit 178e5a8

Please sign in to comment.