blob: ee3ca0a92cb676ca604a2ee80d0717e07384a868 [file] [log] [blame]
#!/bin/sh
set -e
if test -f /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang.gz; then
gunzip -c < /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang.gz > /tmp/ietf-interfaces.yang
else
cp /usr/share/doc/libyang-tools/examples/ietf-interfaces.yang /tmp/ietf-interfaces.yang
fi
yanglint /tmp/ietf-interfaces.yang