autogen.sh, Adms device dirs are taken from configure.ac.
Missing one or all dirs or missing *.va file detected.
This commit is contained in:
parent
9c5a2d0810
commit
b7e471e168
35
autogen.sh
35
autogen.sh
|
|
@ -110,27 +110,28 @@ check_adms()
|
||||||
check_adms_va()
|
check_adms_va()
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
for adms_dir in `ls $ADMSDIR` ; do
|
# get the devices directories from configure.ac
|
||||||
if [ -d "$ADMSDIR/$adms_dir" ]; then
|
admsdirs=`awk '$1 ~ /#VLAMKF/ { print $2 }' < configure.ac`
|
||||||
|
admsdirs=`echo $admsdirs | sed "s/\/Makefile//g"`
|
||||||
|
|
||||||
case "$adms_dir" in
|
for adms_dir in $admsdirs ; do
|
||||||
|
FOK=0
|
||||||
"admst")
|
if [ -d "$adms_dir" ]; then
|
||||||
;;
|
ls $adms_dir/admsva/*.va > /dev/null 2>&1
|
||||||
|
|
||||||
*)
|
|
||||||
ls $ADMSDIR/$adms_dir/admsva/*.va > /dev/null 2>&1
|
|
||||||
exitcode=${PIPESTATUS[0]}
|
exitcode=${PIPESTATUS[0]}
|
||||||
if [ $exitcode -ne 0 ]; then
|
if [ $exitcode -ne 0 ]; then
|
||||||
DIE=1
|
FOK=1
|
||||||
echo "Error: no *.va file found in $adms_dir/admsva"
|
|
||||||
echo "Please download patch file ng-adms-va.tar.gz from"
|
|
||||||
echo "http://ngspice.sourceforge.net/experimental/ng-adms-va.tar.gz"
|
|
||||||
echo "and expand it into the ngspice directory"
|
|
||||||
echo
|
|
||||||
fi
|
fi
|
||||||
;;
|
else
|
||||||
esac
|
FOK=1
|
||||||
|
fi
|
||||||
|
if [ "$FOK" -eq 1 ]; then
|
||||||
|
echo "Error: No *.va file found in $adms_dir/admsva"
|
||||||
|
echo "Please download patch file ng-adms-va.tar.gz from"
|
||||||
|
echo "http://ngspice.sourceforge.net/experimental/ng-adms-va.tar.gz"
|
||||||
|
echo "and expand it into the ngspice directory"
|
||||||
|
echo
|
||||||
|
DIE=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue