Mercurial > emacs
comparison lib-src/=rcs2log @ 14173:940083ef25b9
(initialize_fullname): Add support for NIS+.
(hostname): Fully qualify the default hostname with the domainname
if the hostname lacks a `.'.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Mon, 15 Jan 1996 01:17:56 +0000 |
parents | 68a8bae7a172 |
children | 80562f089595 |
comparison
equal
deleted
inserted
replaced
14172:da563949c7d7 | 14173:940083ef25b9 |
---|---|
10 # Clump together log entries that start with `{topic} ', | 10 # Clump together log entries that start with `{topic} ', |
11 # where `topic' contains neither white space nor `}'. | 11 # where `topic' contains neither white space nor `}'. |
12 | 12 |
13 # Author: Paul Eggert <eggert@twinsun.com> | 13 # Author: Paul Eggert <eggert@twinsun.com> |
14 | 14 |
15 # $Id: rcs2log,v 1.25 1995/07/07 22:47:57 eggert Exp eggert $ | 15 # $Id: rcs2log,v 1.27 1996/01/15 01:17:03 eggert Exp $ |
16 | 16 |
17 # Copyright 1992, 1993, 1994, 1995 Free Software Foundation, Inc. | 17 # Copyright 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. |
18 | 18 |
19 # This program is free software; you can redistribute it and/or modify | 19 # This program is free software; you can redistribute it and/or modify |
20 # it under the terms of the GNU General Public License as published by | 20 # it under the terms of the GNU General Public License as published by |
21 # the Free Software Foundation; either version 2, or (at your option) | 21 # the Free Software Foundation; either version 2, or (at your option) |
22 # any later version. | 22 # any later version. |
362 } | 362 } |
363 } | 363 } |
364 ' | 364 ' |
365 | 365 |
366 initialize_fullname=` | 366 initialize_fullname=` |
367 (cat /etc/passwd; ypmatch $authors passwd) 2>/dev/null | | 367 ( |
368 cat /etc/passwd | |
369 for author in $authors | |
370 do nismatch $author passwd.org_dir | |
371 done | |
372 ypmatch $authors passwd | |
373 ) 2>/dev/null | | |
368 $AWK -F: "$awkscript" | 374 $AWK -F: "$awkscript" |
369 `$initialize_fullname | 375 `$initialize_fullname |
370 esac | 376 esac |
371 | 377 |
372 | 378 |
412 hostname || uname -n || uuname -l || cat /etc/whoami | 418 hostname || uname -n || uuname -l || cat /etc/whoami |
413 ) 2>/dev/null` || { | 419 ) 2>/dev/null` || { |
414 echo >&2 "$0: cannot deduce hostname" | 420 echo >&2 "$0: cannot deduce hostname" |
415 exit 1 | 421 exit 1 |
416 } | 422 } |
423 | |
424 case $hostname in | |
425 *.*) ;; | |
426 *) | |
427 domainname=`(domainname) 2>/dev/null` && | |
428 case $domainname in | |
429 *.*) hostname=$hostname.$domainname | |
430 esac | |
431 esac | |
417 esac | 432 esac |
418 | 433 |
419 | 434 |
420 # Process the rlog output, generating ChangeLog style entries. | 435 # Process the rlog output, generating ChangeLog style entries. |
421 | 436 |