Merge from vendor branch TNF:
[pkgsrc.git] / devel / tkcvs / patches / patch-aa
1 $NetBSD$
2
3 --- tkcvs/doinstall.orig        Tue Jan  9 22:17:52 1996
4 +++ tkcvs/doinstall     Fri Oct 31 09:21:23 1997
5 @@ -5,31 +5,31 @@
6  
7  # Some rational and reasonable defaults.
8  
9 -INSTALLDIR=/usr/local/lib
10 -BINDIR=/usr/local/bin
11 -MANDIR=/usr/local/man/mann
12 +INSTALLDIR=${PREFIX}/share
13 +BINDIR=${PREFIX}/bin
14 +MANDIR=${PREFIX}/man/man1
15  
16  INSTALL_PROG=./install-sh
17  
18  # This must be an X based editor -- do NOT use vi except via an xterm
19  # or shelltool.
20  
21 -EDITOR=nedit
22 +EDITOR="xedit"
23  
24  # Find a Tk interpreter.
25   
26 -WISH=`which wish4.0`
27 +WISH=`which wish8.0`
28  if [ ! -f $WISH ]; then
29 -  WISH=`which wish4.1`
30 +  WISH=`which wish4.1`
31  fi
32  if [ ! -f $WISH ]; then
33 -  echo "I cant find a Tk interpreter on your system"
34 +  echo "I cant find a usefull Tk interpreter on your system"
35    exit 1
36  fi
37  
38  # Find where the global bitmaps are.
39  
40 -for GDIR in /usr/include/X11/bitmaps /usr/openwin/include/X11/bitmaps /usr/X11/include/bitmaps /usr/include/bitmaps /usr/local/include/bitmaps
41 +for GDIR in /usr/X11R6/include/X11/bitmaps /usr/openwin/include/X11/bitmaps /usr/X11/include/bitmaps /usr/include/bitmaps ${PREFIX}/include/bitmaps
42  do
43    if [ -d "$GDIR" ]; then
44      break
45 @@ -62,10 +62,10 @@
46  
47  # Some directories we have to create.
48  
49 -LDIR=${INSTALLDIR}/bitmaps
50  TCDIR=${INSTALLDIR}/tkcvs
51 -mkdir -p $LDIR $TCDIR
52 -for dir in $LDIR $TCDIR
53 +LDIR=${TCDIR}/bitmaps
54 +mkdir -p $LDIR $TCDIR 
55 +for dir in $TCDIR $LDIR
56  do
57    if [ ! -d $dir ]; then
58      echo "I cant create the directory $dir"
59 @@ -99,7 +99,7 @@
60    fi
61  done
62  
63 -for f in *.n ../tkdiff/*.n
64 +for f in *.1 ../tkdiff/*.1
65  do
66          $INSTALL_PROG -m 444 $f $MANDIR
67  done