Ondřej Surý | 748c8e5 | 2021-05-07 18:56:31 +0200 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | set -e | ||||
4 | if test -f /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang.gz; then | ||||
5 | gunzip -c < /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang.gz > /tmp/ietf-interfaces.yang | ||||
6 | else | ||||
7 | cp /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang /tmp/ietf-interfaces.yang | ||||
8 | fi | ||||
9 | yanglint /tmp/ietf-interfaces.yang |