This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the files from dist/meta to perl's repo
[metaconfig.git] / dist / U / newslevel.U
CommitLineData
d8875586
MBT
1?RCS: $Id: newslevel.U 1 2006-08-24 12:32:52Z rmanfredi $
2?RCS:
3?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
4?RCS:
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.
10?RCS:
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.
14?RCS:
15?MAKE:newslevel: cat contains test activeexp newslib Myread Oldconfig
16?MAKE: -pick add $@ %<
17?S:newslevel:
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.
21?S:.
22?C:NEWSLEVEL:
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.
26?C:.
27?H:#define NEWSLEVEL $newslevel /**/
28?H:.
29: check for news version
30if $test -f $activeexp; then
31 if ??? >/dev/null 2>&1; then
32 dflt=2110
33 elif $test -f $newslib/cunbatch; then
34 dflt=2103
35 elif $contains ' [0-9][0-9]* [0-9]' "$activeexp" >/dev/null 2>&1; then
36 dflt=2102
37 else
38 dflt=2101
39 fi
40else
41 dflt=$newslevel
42fi
43$cat <<EOM
44
45The following news version number is a multiplexed integer:
46 1000 * major rev + 10 * minor rev + sub rev.
47News 2.10.3 would be 2103. 2.11 comes out as 2110.
48
49EOM
50rp="What version of news are you going to be running?"
51. ./myread
52newslevel="$ans"
53