Fix script to work on Debian8 (jessie)

As python-ctypeslib is long unmaintained, it is not packaged
for anything more recent than Debian 8 (jessie).  Let's print
that at start and check for availability of the reqquired
executable programs (part of python-ctypeslib).

Change-Id: Ied6333016e2eb357bda08499742f1ed8c56ba762
Harald Welte 2020-03-06 10:43:58 +00:00
parent 637cf54c8c
commit 7b33e5f6e2
1 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,16 @@
echo on Debian, codegen/ must call gccxml.real instead of gccxml!
echo This script requires that python-ctypeslib is installed on the system
echo Unfortunately, this package is long unmaintained and only available on Debian8
if [ ! -x `which h2xml` ]; then
echo No h2xml executable found - python-ctypeslib not installed?
if [ ! -x `which xml2py` ]; then
echo No xml2py executable found - python-ctypeslib not installed?
cp ./mncc.h /tmp/mncc.h ./mncc.h -c -o mncc.xml mncc.xml -k dest -v -o
h2xml ./mncc.h -c -o mncc.xml
xml2py mncc.xml -k dest -v -o