Shell script for adding a statement in a file after a particular statement
We are building our C++ project in Kdevelop IDE. Every time we run "Run Configure" from the "Build" menu, a file named "libtool" gets automatically generated.
This file contains a statement as "ECHO="echo"".
If we run "Automake", without modifying the "libtool" the system hangs and the computer needs to be restarted.
Therefore every time we run "Run Configure" we need to include the line "echo="echo"" below the statement "ECHO="echo"" manually.
I think a script can be written which does the above on its own.
I am not a shell script programmer, I know the good tutorials for shell scripts are available on the net, but learning scripting only for this task would be time-consuming and painful.
I shall be great-full if someone helps me with this !
Last edited by Aquarius_Girl; 06-28-2010 at 01:56 AM.
|