#!/bin/bash
case $# in
  2)
    LANG=$1
    ;;
  *)
    echo "USAGE: apertium-filter-rules LANG FILE";
    exit 1;
esac

xsltproc --stringparam lang "$LANG" /opt/win-x86_64/share/apertium/filter-rules.xslt "$2"
