Hello, I have to rename the filename feeded to a script as CVS doesn't like absolute path..
here is the script (obviously is not working... )
Code:
#!/bin/sh
echo $1 | sed 's/\/data\/Projects\/regmas/\.\./' > $TEST
echo $TEST
cvs status $TEST | sed -n 's/^[ \]*Working revision:[ \t]*\([0-9][0-9\.]*\).*/\1/p'
I want feed "cvs status" with the translation operated by sed on the fist provided argument, so it will operate e.g. on "../src/main.cpp" instead of "/data/Projects/regmas/src/main.cpp"..