2012/5/4 Xiaofan Chen <xiaof...@gmail.com>:
> Somehow there is no source command by default under
> OpenBSD. I am wondering maybe it is better just use
> "./bootstrap.sh" than "source bootstrap.sh".
>
> bash-4.2$ ./autogen.sh
> ./autogen.sh[2]: source: not found
> ./autogen.sh[3]: ./configure: not found

source looks like a bash command. But autogen.sh uses #!/bin/sh
It does work when /bin/sh is an alias for bash. But some systems (not
only *BSD) uses a different shell for /bin/sh.

Since we do not want to execute ./bootstrap.sh in the _same_ shell
./bootstrap.sh (without source) is the correct way to execute the
script.

I also propose to add a "set -e" so the script exists on the first error.

I will try to send my patches using "git send-email"

Bye

-- 
 Dr. Ludovic Rousseau

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to