Keith Groves wrote:
> Regarding 1. Tabs:
> I've worked on a project with someone (Dale, cc'd) who set up the project
> CVS store to not allow checkins of source containing tabs. The
> server would
> return a polite message telling the developer to change the tabs to spaces
> and try again.
> Well be worth doing if you are happy to force this on people rather then
> just ask nicely.
Section C.1.5 of Cederqvist 1.11.2 describes the use of a "-i" option in the
modules file that could be used for this purpose. Section C.3.2 describes an
even more useful (for this application) option: the "commitinfo" file. I
would think adding an entry to "commitinfo" referencing a script that looks
like the following would do the trick:
TABCOUNT=`cat $INPUT | grep "\t" | wc -l`
if [ $COUNT -gt 0 ]
then
echo "Input file contains tabs. Aborting commit."
exit 1
else
exit 0
fi
As I understand the doc, this logic probably needs to be inside a "while
true" loop so that it can be shifted for each input file.
Vic
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]