Skip to content
Snippets Groups Projects
Commit 77b42076 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

Updated maker for swig wrappers

parent 5dfbc661
Branches
No related merge requests found
#!/bin/bash -x
#!/bin/bash
if [ ${#} -eq 0 ]
then
......@@ -9,8 +9,8 @@ fi
UPPER=`echo ${1} | tr '[:lower:]' '[:upper:]'`
LOWER=`echo ${1} | tr '[:upper:]' '[:lower:]'`
CLNAM=${1}
OUTFILE=libcorpus${LOWER}.i
OUTFILE=${LOWER}.i
cat swig_template_corpus2.template | sed s/TEMPLATE/${UPPER}/g | sed s/Template/${CLNAM}/g | sed s/template/${LOWER}/g > ${OUTFILE}
echo -e "\e[1;32m${OUTFILE} was generated. Don't forget to add ${OUTFILE} to Makefile (or CMake)!\e[0m"
echo -e "\e[1;32m${OUTFILE} has been generated. Don't forget to add ${OUTFILE} to Makefile (or CMake)!\e[0m"
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