How to unset XKEYSYMDB?

Oh, Graeme

I'm terribly sorry for that. I should have used "Mr. Bunyan" in my last
post.

As you predicted, I did find that there exist the shell files
"hercules_setup.csh" and "hercules_setup.sh" under the directory
"/syn/hercules". Also there's setup about the environment var of
"XKEYSYMDB" in these files. But I am still confused here.

I pick up all of setup involved with "avanti_home_dir" from the script
and paste them as below.

if [ ! "$avanti_home_dir" ]; then
avanti_home_dir="/cad/avanti/hercules"
export avanti_home_dir
fi

if [ -d "${avanti_home_dir}/bin" ]; then
PATH="$avanti_home_dir/bin:$PATH"
export PATH
fi

if [ ! "$HERCULES_HOME_DIR" ]; then
HERCULES_HOME_DIR=$avanti_home_dir
export HERCULES_HOME_DIR
fi

if [ -d "${HERCULES_HOME_DIR}/bin" ]; then
PATH="$PATH:$avanti_home_dir/bin"
export PATH
fi
.......
ACEAVANTI="yes"
if [ ! -d "${avanti_home_dir}" ]; then
ACEAVANTI="no"
fi
export ACEAVANTI
.......
if [ "$avanti_home_dir" ]; then
if [ -d "${avanti_home_dir}/bin" ]; then
wkdir=`pwd`; cd $avanti_home_dir; tmpdir=`pwd`
_vv=`echo $tmpdir | grep "2003"`
if [ ! "$_vv" ]; then
echo "**ACE50 WARNING** Hercules path
(\$avanti_home_dir):$avanti_home_dir is out-of-date"
else
echo "--ACE50 INFO -- Hercules path
(\$avanti_home_dir):$avanti_home_dir OK"
fi; cd $wkdir
else
echo "**ACE50 WARNING** Hercules path
(\$avanti_home_dir):$avanti_home_dir is NOT installed"
fi fi

Actually I didn't see the script source the hercules' setup anywhere. I
guess that the script never touched the hercules' setup files at all.
In our Unix system, the file "XKeysymDB" is located under
"/syn/hercules/lib-u/X11" whereas the script actually set the var
"XKEYSYMDB" to "/syn/hercules/lib/X11" after manually setting
"avanti_home_dir" to "/syn/hercules". It means somewhere there exists
some setting like this:

XKEYSYMDB=$avanti_home_dir/lib/X11/XKeysymDB ( However we dont have the
directory "/lib" there.)

The script essentially setup some environment vars for Cadence and then
invoke icfb. I just wonder why it also do some business with Hercules
in the same script. Does it inform that Syn and Cad are co-operating
with each other?
Thanks!

-Andy
 
Hi, G

I really like to try what you said. But I don't know much about how to
do in Unix world. Could you give me further hints on that? Thanks a
lot!

-Andy
 
Stephane

I tried according to what you said. The problem is from the initiation
process of Cadence which integrates the 3rd-party utility and menus.
The PDK is assuming that there exists a directory "/lib" under
installation directory of Avanti Hercules. Unfortunately, we don't have
the directory there. Also I can't touch the encrypted .cdsinit file or
sth like that.

So I just wonder if there's a way to link a non-existing directory to
another existing directory, only in a few user's environment setup. ( I
better leave the system directory/file structure alone.) In my case,
it's like:

$avanti_home_dir/lib --> $/avanit_home_dir/existinglib

Thanks

Andy
 

Welcome to EDABoard.com

Sponsor

Back
Top