I have a slight problem, and I am unable to find a solution to it, so any help here would be greatly appreciated...
I have written a compiling script which simply takes two parameters ( sourcefile name, and outputfile name ), this works fine.
On top of this I have written another small script which compiles some files and then links them with the required parameters, the problem arises when I call my original 'compiling' script.
This runs the script, but passes the whole string ( "sourceFile.c outputFile.o" ) as one parameter, but I want to pass this as two arguments. I've tried putting them into vars and seperating the vars but to no avail. Is this possible?
sh /home/dev/scripts/comp "sourceFile.c outputFile.o"
To elaborate: The compile script takes the two arguments 'sourceFile.c' and 'outputFile.o' and runs
So essentially its just filling in the paths for me.
gcc -c /home/dev/source/sourceFile.c -o /home/dev/o/outputFile.o
Thanks in advance