File: transformdicbil-header.sh

package info (click to toggle)
apertium 3.1.0-1.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,072 kB
  • ctags: 3,601
  • sloc: cpp: 14,310; sh: 9,794; xml: 929; makefile: 385; awk: 18
file content (15 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
if [ $# != 2 ]
then echo "USAGE: $(basename $0) <input_file> <output_file>";
     exit 1;
fi

FILE1=$1;
FILE2=$2;

if [ ! -e $1 ] 
then echo "ERROR: '$1' file not found";
     exit 1;
fi

xsltproc $XSLTPROC_OPTIONS $STYLESHEET $FILE1 >$FILE2