Zorro
|
hello all,
I do have a question regarding ocean scripts. it is probably very basic but I'm new to linux and the shell. hope someonce can help me.
if I type: cd /design/libs/at77000/dev/
the command takes me to this directory (by typing pwd): /design/libs/at77000/v0.9
i.e. "dev" is defined to take me to the newest version (some kind of an alias?), in this case to the directory v0.9
in fact if I go one directory up to /design/libs/at77000 and I do "ll" I can see: dev -> v0.9/
I am using ocean scripts and for documentation it is important for me to print/show which version is been used in the simulation
so I am doing something like this. first I define:
model_path="/design/libs/at77000/dev/"
and then:
fprintf(out "\n\n Version Used: %s \t" model_path)
it's working, but the output file shows: Version Used: /design/libs/at77000/dev/
so my question is how to show the current version directory "v0.9" instead of "dev", i.e. I need to print this: Version Used: /design/libs/at77000/v0.9/
the version is changing from time to time and that's why the path is defined as "/design/libs/at77000/dev/"
thank you very much and if you need more info please let me know.
regards!
|