blob: bcb6e1b559217dad44f2d8336e0deb98c3e31c85 [file] [log] [blame]
Thomas Vachuska73436b52017-03-22 19:50:47 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Extracts YANG model schema and YANG sources from a YANG model jar.
4# -----------------------------------------------------------------------------
5
6output=$1
7jar=$2
8
9aux=/tmp/ys-$$
10trap "rm -fr $aux" EXIT
11
12rm -fr $aux
13mkdir -p $aux $output
14
15cd $aux
16jar xf $jar
17mv yang/* $output