onos/buck-tools/yang-schema
Thomas Vachuska 73436b52c6 Adding demo yang models and working on yang model packaging.
Change-Id: Ief674880920cf6165c863909298eb4fa6dd3fb64
2017-03-23 21:38:35 +00:00

17 lines
372 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Extracts YANG model schema and YANG sources from a YANG model jar.
# -----------------------------------------------------------------------------
output=$1
jar=$2
aux=/tmp/ys-$$
trap "rm -fr $aux" EXIT
rm -fr $aux
mkdir -p $aux $output
cd $aux
jar xf $jar
mv yang/* $output