Does anyone know how to parse a string in a script inside a Run Script target?
In particular, there is an Input Files list below the script. What I want is just the file name from the list. It appears that if you place just a name in the list it is accessed with $(SRCROOT) prepended. ie: ~/usr/projects/project/filename.cpp
I access the list in the script with
Code:
inputFile=`eval echo '$SCRIPT_INPUT_FILE_'$i'
which is what gives me the string above.
What I want is just the 'filename'.
I've read various docs and have not find the magic combination. it would be nice if someone could point me to some example code or docs that describe string parsing with shell scripting.