unified setup configs
[reconos.git] / tools / reconos_preproc.sh
bloba2f589b64c7814a5bdb263e50d0ed5de82014ff9
1 #!/bin/sh
3 # ____ _____
4 # ________ _________ ____ / __ \/ ___/
5 # / ___/ _ \/ ___/ __ \/ __ \/ / / /\__ \
6 # / / / __/ /__/ /_/ / / / / /_/ /___/ /
7 # /_/ \___/\___/\____/_/ /_/\____//____/
8 #
9 # ======================================================================
11 # project: ReconOS
12 # author: Christoph RĂ¼thing, University of Paderborn
13 # description: The ReconOS preprocessor to generate the pcores files.
15 # ======================================================================
17 if [ $# -ne 3 ]
18 then
19 echo "ERROR: You must specifiy exactly three arguments:"
20 echo " input file, number of HWTs, output file"
21 exit
24 if [ ! -f $1 ]
25 then
26 echo "ERROR: Input file not found"
27 exit
30 python "$RECONOS/tools/python/preproc.py" $1 $2 > .~tmp
31 mv .~tmp $3