Commit 35f1c18b authored by Tarun Prabhu's avatar Tarun Prabhu
Browse files

A cheap, not-very-elegant script that generates the XSD files and does hacky modifications.

The result is a separate *top file for ptop.xsd and vtop.xsd
parent ddd8059b
#! /bin/sh
# Delete all xsd files which are around
if [ -e "top.xsd" ]; then
rm top.xsd
if [ -e "ptop.xsd" ]; then
rm ptop.xsd
if [ -e "vtop.xsd" ]; then
rm vtop.xsd
if [ -e "ptop-top.xsd" ]; then
rm ptop-top.xsd
if [ -e "vtop-top.xsd" ]; then
rm vtop-top.xsd
# Create the ptop file
java -jar trang.jar ptop.rnc ptop.xsd
mv top.xsd ptop-top.xsd
sed 's/top.xsd/ptop-top.xsd/' ptop.xsd > ptop.tmp
mv ptop.tmp ptop.xsd
# Create the vtop file
java -jar trang.jar vtop.rnc vtop.xsd
mv top.xsd vtop-top.xsd
sed 's/top.xsd/vtop-top.xsd/' vtop.xsd > vtop.tmp
mv vtop.tmp vtop.xsd
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment