Share

CSSC

Tracker: Feature Requests

5 Supress "No id keyword" output - ID: 1811627
Last Update: Tracker Item Submitted ( dirkhell )

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);
}
}


Dirk Hellmann ( dirkhell ) - 2007-10-11 15:15

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.