Bruce & Breeanna Rennie wrote:
>>> #!/bin/sh
>>> IXBIN=/home/Bruce/src/Unicon/bin/iconx
>>> IXLCL=`echo $0 | sed 's=[^/]*$=iconx='`
>>>
>>> [ -n "$ICONX" ] && exec "$ICONX" $0 ${1+"$@"}
>>> [ -x $IXLCL ] && exec $IXLCL $0 ${1+"$@"}
>>> [ -x $IXBIN ] && exec $IXBIN $0 ${1+"$@"}
>>> exec iconx $0 ${1+"$@"}
> When I built the Unicon system from source, it has created a number of
> the files as bash scripts which are executable because of the prefix
> above. i am just trying to achieve the same effect. I have looked at the
> make files but at this point in time have not been able to find where
> this is added.
Hi Bruce,
I did some searching through the Unicon source code. The above
prefix is added by the code in Unicon/src/icont/link.c. There are
several (nested) macro checks that determine if that header
should be put out or not. If any of those fail then it won't
be written. From outside to inside:
#ifdef Header
...
#ifdef ShellHeader
...
#ifdef UNIX
I'm not familiar enough with the sources to know which of these
is the most likely culprit (or why!). I don't even know where
they're set.
Maybe someone else has an idea?
Oh, one shot in the dark - what arguments to make did you use when
configuring for the build?
--
Steve Wampler -- [email protected]
The gods that smiled on your birth are now laughing out loud.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group