1 ?RCS: $Id: newslevel.U 1 2006-08-24 12:32:52Z rmanfredi $
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
11 ?RCS: $Log: newslevel.U,v $
12 ?RCS: Revision 3.0 1993/08/18 12:09:21 ram
13 ?RCS: Baseline for dist 3.0 netwide release.
15 ?MAKE:newslevel: cat contains test activeexp newslib Myread Oldconfig
16 ?MAKE: -pick add $@ %<
18 ?S: The current revision level of the Usenet news system, encoded
19 ?S: as 1000 * major rev + 10 * minor rev + sub rev. For instance,
20 ?S: news 2.10.3 is encode as 2103, and 2.11 as 2110.
23 ?C: The current revision level of the Usenet news system, encoded
24 ?C: as 1000 * major rev + 10 * minor rev + sub rev. For instance,
25 ?C: news 2.10.3 is encode as 2103, and 2.11 as 2110.
27 ?H:#define NEWSLEVEL $newslevel /**/
29 : check for news version
30 if $test -f $activeexp; then
31 if ??? >/dev/null 2>&1; then
33 elif $test -f $newslib/cunbatch; then
35 elif $contains ' [0-9][0-9]* [0-9]' "$activeexp" >/dev/null 2>&1; then
45 The following news version number is a multiplexed integer:
46 1000 * major rev + 10 * minor rev + sub rev.
47 News 2.10.3 would be 2103. 2.11 comes out as 2110.
50 rp="What version of news are you going to be running?"