Firstly we play around with sccs call in shell scripts and doing stuff like
grep and cut the output of sccs commands. Secondly we have many files that
have no id-keword (%W%). Getting the warning "No id keyword" is annyoing
and destroyed our scripts.
I added a envvar CSSC_DONT_SHOW_NO_ID_WARNING. If this is set the warning
message is always supressed.
Here is the diff -c from the sf-kw.c
root:/opt/src> diff -c CSSC-1.0.1/sf-kw.cc orig/CSSC-1.0.1/sf-kw.cc
*** CSSC-1.0.1/sf-kw.cc Thu Oct 11 16:42:10 2007
--- orig/CSSC-1.0.1/sf-kw.cc Wed Apr 3 21:02:33 2002
***************
*** 47,56 ****
}
else
{
! // DIRKHELL if CSSC_DONT_SHOW_NO_ID_WARNING is set no
! // 'No id keywords' warning is printed
! if (!getenv("CSSC_DONT_SHOW_NO_ID_WARNING"))
! warning("%s: No id keywords.", name);
}
}
--- 47,53 ----
}
else
{
! warning("%s: No id keywords.", name);
}
}
Nobody/Anonymous
None
None
Public