[GCC-XML] Re: error when building (pradeep kumar)

pradeep kumar pradeep.y5mc at gmail.com
Wed Aug 22 01:05:15 EDT 2007


Hi
 thanks for the reply
 i have done  what you have said, created a foo.sh file in my root directory
and i got the out put as:

foo.sh:
FOO=`cd "\`echo \"$0\" | sed -n '/\//{s/\/[^\/]*$//;p;}'\`";cd ..;pwd`
echo "$FOO"

actually the command you gave me "/bin/sh  foo.sh" didnt  work i typed
it as/bin/sh "
foo.sh".

output :
/home

i changed the foo.sh file location to ~/gccxml-build and run the process

output:
/home/pradeepd

actually i doent have much knowledge in unix. can you help.
thanks in advance:
On 8/21/07, Brad King <brad.king at kitware.com> wrote:
>
> pradeep kumar wrote:
> > Command: /bin/sh
> > "/home/pradeepd/gccxml/GCC/config_cmake/gcc_platform.sh"
> > "/home/pradeepd/gccxml-build/GCC/config_cmake/gcc_platform.cmake"
> > "usr/bin/cmake "
> >
> > Output:
> > /home/pradeepd/gccxml/GCC/config_cmake/gcc_platform.sh:
> > /home/pradeepd/gccxml/GC: bad interpreter: No such file or directory
> [snip]
> > File: gcc_plarform.sh
> >
> > GCC_SOURCE_DIR=`cd "\`echo \"$0\" | sed -n
> > '/\//{s/\/[^\/]*$//;p;}'\`";cd ..;pwd`
>
> This is very strange.  No one has ever had a problem with this script
> before.  Try creating a file "foo.sh" with the contents
>
> FOO=`cd "\`echo \"$0\" | sed -n '/\//{s/\/[^\/]*$//;p;}'\`";cd ..;pwd`
> echo "$FOO"
>
> and then run "/bin/sh foo.sh".  What happens?
>
> -Brad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20070822/36934d59/attachment-0001.html>


More information about the gccxml mailing list