This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
As in bin/mlint, use Getopt::Std::getopts() instead of Perl 4 getopts.pl.
[metaconfig.git] / dist / U / defeditor.U
CommitLineData
d8875586
MBT
1?RCS: $Id: defeditor.U 1 2006-08-24 12:32:52Z rmanfredi $
2?RCS:
3?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
cf39bd7e 4?RCS:
d8875586
MBT
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: defeditor.U,v $
12?RCS: Revision 3.0.1.1 1995/01/11 15:30:16 ram
13?RCS: patch45: can now use the 'vi' variable since path stripping is deferred
14?RCS:
15?RCS: Revision 3.0 1993/08/18 12:08:05 ram
16?RCS: Baseline for dist 3.0 netwide release.
17?RCS:
18?MAKE:defeditor: Getfile Oldconfig Loc vi
19?MAKE: -pick add $@ %<
20?S:defeditor:
21?S: This variable contains the eventual value of the DEFEDITOR symbol,
22?S: which contains the name of the default editor.
23?S:.
24?C:DEFEDITOR:
25?C: This symbol contains the full pathname of the default editor.
26?C:.
27?H:#define DEFEDITOR "$defeditor" /**/
28?H:.
29: determine default editor
30echo " "
31case "$defeditor" in
32'')
33 case "$vi" in
34 */*) dflt="$vi";;
35 *) dflt=/usr/ucb/vi;;
36 esac
37 ;;
38*) dflt="$defeditor"
39 ;;
40esac
41fn=f/
42rp="What is the default editor on your system?"
43. ./getfile
44defeditor="$ans"
45