lib/Tools/yxml
author wenzelm
Sun, 18 Sep 2011 19:49:35 +0200
changeset 44979 68b990e950b1
parent 35022 c844b93dd147
permissions -rwxr-xr-x
explicit master_dir as part of header -- still required (for Cygwin) since Scala layer does not pass file content yet;

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: simple XML to YXML converter


PRG="$(basename "$0")"

function usage()
{
  echo
  echo "Usage: isabelle $PRG"
  echo
  echo "  Convert XML (stdin) to YXML (stdout)."
  echo
  exit 1
}

function fail()
{
  echo "$1" >&2
  exit 2
}


## process command line

[ "$#" -ne 0 ] && usage


## main

exec "$ISABELLE_HOME/lib/scripts/yxml"