console user input when processing makefile [message #200718] |
Wed, 29 August 2007 09:48  |
Eclipse User |
|
|
|
Originally posted by: Dmitriy.Kornilov.telma.ru
Hi,
could you help with this problem, guys?
I'm building on Red Hat Linux, Eclipse 3.2.0, CDT 3.1.1.
My project includes shell script which requires license confirmation
from user before building. Shell script 'license' simple waits for user
input ('yes' or 'no').
When I build it using make from terminal, all works fine. When I build
it using make in Eclipse, console doesn't let me to enter anything and
fails:
make -k all
../license
Do you accept license (yes/no)?
make: *** [all] Error 1
It seems, that 'read' command can not be executed from Eclipse console.
Here is my makefile:
Makefile
========
first all:
./license
g++ main.cpp -o main
license
=======
#!/bin/sh
echo "Do you accept license (yes/no)?"
read confirm
Is there any way to get user input in Eclipse console during makefile
processing?
Thank you,
Dmitry.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03904 seconds