Skip to content

Commit

Permalink
combined asn1 compile scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeuerhahn committed Jun 25, 2020
1 parent 667ae70 commit 63db178
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 25 deletions.
12 changes: 12 additions & 0 deletions asn1/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

cd `dirname $0`

rm ../src/main/java-gen/com/beanit/josistack/internal/acse/asn1/*
asn1bean-compiler -o "../src/main/java-gen/" -p "com.beanit.josistack.internal.acse" -f iso-acse-layer.asn -dv

rm ../src/main/java-gen/com/beanit/josistack/internal/presentation/asn1/*
asn1bean-compiler -o "../src/main/java-gen/" -p "com.beanit.josistack.internal.presentation" -f iso-presentation-layer.asn -dv

rm -r ../src/main/java-gen/com/beanit/iec61850bean/internal/mms/asn1/*
asn1bean-compiler -o "../src/main/java-gen" -p "com.beanit.iec61850bean.internal.mms" -f mms.asn -dv
File renamed without changes.
7 changes: 0 additions & 7 deletions asn1/iso-acse-layer/compile.sh

This file was deleted.

File renamed without changes.
6 changes: 0 additions & 6 deletions asn1/iso-presentation-layer/compile.sh

This file was deleted.

File renamed without changes.
7 changes: 0 additions & 7 deletions asn1/mms/compile.sh

This file was deleted.

5 changes: 0 additions & 5 deletions asn1/mms/rename-berboolean.sh

This file was deleted.

10 changes: 10 additions & 0 deletions asn1/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps to follow:

1) compile classes by executing compile.sh

2) format everything using IntelliJ

3) execute replace-berboolean.sh (this step does not work if step 2
is not executed)

4) again format everyting using IntelliJ
6 changes: 6 additions & 0 deletions asn1/replace-berboolean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

cd `dirname $0`

# replace BerBoolean from ASN1bean with special one for IEC 61850 so that true is coded as 0x01 instead of 0xff
find ../ -iname "*.java" | xargs sed -i 's/import com\.beanit\.asn1bean\.ber\.types\.BerBoolean/import com\.beanit\.iec61850bean\.internal\.BerBoolean/g'

0 comments on commit 63db178

Please sign in to comment.