Re: [cciug] Need Trigger suggestion...

From: Wolfgang Laun (Wolfgang.Laun@alcatel.at)
Date: Thu Jan 13 2000 - 02:24:16 EST


"Don-Hoi, Kim" wrote:

> Hi...
> Thank you for your help but the script that you wrote didn't work.
> In my thought, diff file cannot be written because $CLEARCASE_PN is absolute path name. So, I have move diff file to home directory.
> Finally, I wrote the script as following.
>
> #!/bin/sh
> cleartool diff -pred "$CLEARCASE_PN" > "$CLEARCASE_PN.diff"
> mv ${CLEARCASE_PN}.diff $HOME
> exit 0
>
> This works fine but I don't want to create and move file. Is there any other way?

You might use

#!/bin/sh
file=`basename $CLEARCASE_PN`
cleartool diff -pred $CLEARCASE_PN >$HOME/$file.diff
exit 0

Regards,
-Wolfgang



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:27 EDT