Generator frontend scripts (./libcevap_gen.sh to be run in libcevap/)

This commit is contained in:
2007-08-19 18:37:38 +00:00
parent 99fceeb9e4
commit 9b552e9db6
4 changed files with 73 additions and 46 deletions

30
libcevap/extract_cgen_input.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/sh
copy_mode=0
while true
do
read line
if test "$copy_mode" = "0"
then
if echo " $line" | grep '^ Cgen=' >/dev/null 2>&1
then
copy_mode=1
if echo " $line" | grep '^ Cgen=..' >/dev/null 2>&1
then
echo " $line" | sed -e 's/^ Cgen=//'
fi
elif echo " $line" | grep '^ =end Model=' >/dev/null 2>&1
then
break
fi
else
if test " $line" = " @"
then
copy_mode=0
echo "@"
else
echo " $line" | sed -e 's/^ //'
fi
fi
done