Hi, I was wondering: in Solaris/* scripts if there is some way to find out the directory that KBE/CBE is running from? As Ben points out, the KBE_PREFIX variable set in /opt/kdebld/bin/env.sh is not exported, and I can't see any environment variable for this that is exported?
Similarly, in CBE 1.6 /opt/jdsbld/bin/env.sh, CBE_PREFIX is not exported. What I was trying to do was to make sure the KBE/CBE sed is used in scripts like: goanna% pwd /h/goanna/2/os_5.10/KDE/Dude/XSTUFF/20071107/Solaris goanna% cat apply_patches #!/bin/bash $KBE_PREFIX/bin/sed -i -e "s%^make%/usr/ccs/bin/make%" buildit $KBE_PREFIX/bin/sed -i -e "s%PATH=\$PATH%PATH=/usr/ccs/bin:\$PATH%" buildit goanna% Which is currently wrong because $KBE_PREFIX is not exported. Some ideas: (1) We could export something like KBE_PREFIX (2) I could remove the $KBE_PREFIX/bin and just use sed instead, and assume the build environment has that in the path first. Note though that in this script I need to alter the path so that /usr/ccs/bin/make is used, but then I guess that is being done just for the X-Windows consolidation build environment. (3) I guess there is hard coding /opt/kdebld/bin/sed, but that does not seem like a good idea, it might change to some other directory. Thanks, Mark On Wed, 30 Jul 2008 07:49:53 -0400 "Ben Taylor" <bentaylor.solx86 at gmail.com> wrote: > KBE_PREFIX in apply_patches doesn't appear to be a standard > variable in the kbebld env. --
