1 ?RCS: $Id: d_flexfnam.U,v 3.0 1993/08/18 12:06:04 ram Exp $
3 ?RCS: Copyright (c) 1991-1993, 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 3.0.
11 ?RCS: $Log: d_flexfnam.U,v $
12 ?RCS: Revision 3.0 1993/08/18 12:06:04 ram
13 ?RCS: Baseline for dist 3.0 netwide release.
15 ?MAKE:d_flexfnam: cat rm test Setvar
16 ?MAKE: -pick add $@ %<
18 ?S: This variable conditionally defines the FLEXFILENAMES symbol, which
19 ?S: indicates that the system supports filenames longer than 14 characters.
22 ?C: This symbol, if defined, indicates that the system supports filenames
23 ?C: longer than 14 characters.
25 ?H:#$d_flexfnam FLEXFILENAMES /**/
29 : see if we can have long filenames
32 ?X: We have to test in both /tmp and . because of NFS (remote server may allow
33 ?X: long filenames while the local filesystem cannot support them). If at least
34 ?X: one of those file systems cannot support long filenames, then we assume the
35 ?X: whole system can't.
39 if (echo hi >$first) 2>/dev/null; then
40 if $test -f 123456789abcde; then
41 echo 'You cannot have filenames longer than 14 characters. Sigh.' >&4
44 echo 'You can have filenames longer than 14 characters.'>&4
49 You can't have filenames longer than 14 chars.
50 You can't even think about them!
56 $rm -rf 123456789abcde*