blob: ee3ca0a92cb676ca604a2ee80d0717e07384a868 [file] [log] [blame]
Ondřej Surý748c8e52021-05-07 18:56:31 +02001#!/bin/sh
2
3set -e
4if 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
6else
7 cp /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang /tmp/ietf-interfaces.yang
8fi
9yanglint /tmp/ietf-interfaces.yang