summaryrefslogtreecommitdiff
path: root/time/xalarm/patches/patch-aa
blob: 2ba2d94df43656d85d3895e905c433d79e3f71e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
$NetBSD: patch-aa,v 1.3 2006/04/16 01:00:06 perry Exp $

--- Imakefile.orig	1995-07-21 10:32:07.000000000 -0400
+++ Imakefile	2006-04-15 20:52:05.000000000 -0400
@@ -1,27 +1,27 @@
-/**/# Based on an Imakefile from:
-/**/# Andreas Stolcke
-/**/# International Computer Science Institute, Berkeley.
-/**/# With help from:
-/**/# George Lindholm, Jonathan I. Kamens, Braham Levy.
-
-
-/**/# o Define FORKRETURNSSHORT/FORKRETURNSLONG/FORKRETURNSPID_T if your
-/**/#   fork(2) returns short/long/pid_t not int.
-/**/# o Define USEFLOCK or USELOCKF to use flock(2) or lockf(3) to lock files,
-/**/#   rather than fcntl(2).
-/**/# o Define USELSEEK to use lseek(2) to move to the end of the file, rather
-/**/#   than fseek(3).
-/**/# o Define USERENAME to use rename(2) to rename file names (otherwise
-/**/#   un/link(2)).
-/**/# o Define USEGETHOSTNAME or USEUNAME (or neither if you don't have
-/**/#   gethostname(2) or uname(2)) to get the name of your system.
-/**/# o Define USEGETPWUID to use getpwuid(3) and getuid(2) to get the user
-/**/#   name and home directory on your system.  Note that if you want to use
-/**/#   this method to get the user's home directory, but another method to get
-/**/#   the user name, this symbol must still be defined.
-/**/# o Define USEGETLOGIN to use getlogin(3) to get the user name (note that
-/**/#   this may not work if xalarm is invoked from a pseudo terminal).
-/**/# o Define USECUSERID to use cuserid(3) to get the user name.
+XCOMM # Based on an Imakefile from:
+XCOMM # Andreas Stolcke
+XCOMM # International Computer Science Institute, Berkeley.
+XCOMM # With help from:
+XCOMM # George Lindholm, Jonathan I. Kamens, Braham Levy.
+
+
+XCOMM # o Define FORKRETURNSSHORT/FORKRETURNSLONG/FORKRETURNSPID_T if your
+XCOMM #   fork(2) returns short/long/pid_t not int.
+XCOMM # o Define USEFLOCK or USELOCKF to use flock(2) or lockf(3) to lock files,
+XCOMM #   rather than fcntl(2).
+XCOMM # o Define USELSEEK to use lseek(2) to move to the end of the file, rather
+XCOMM #   than fseek(3).
+XCOMM # o Define USERENAME to use rename(2) to rename file names (otherwise
+XCOMM #   un/link(2)).
+XCOMM # o Define USEGETHOSTNAME or USEUNAME (or neither if you don't have
+XCOMM #   gethostname(2) or uname(2)) to get the name of your system.
+XCOMM # o Define USEGETPWUID to use getpwuid(3) and getuid(2) to get the user
+XCOMM #   name and home directory on your system.  Note that if you want to use
+XCOMM #   this method to get the user's home directory, but another method to get
+XCOMM #   the user name, this symbol must still be defined.
+XCOMM # o Define USEGETLOGIN to use getlogin(3) to get the user name (note that
+XCOMM #   this may not work if xalarm is invoked from a pseudo terminal).
+XCOMM # o Define USECUSERID to use cuserid(3) to get the user name.
 
 DEFINES = $(SIGNAL_DEFINES) -DUSERENAME -DUSEGETHOSTNAME -DUSEGETPWUID
 
@@ -29,29 +29,16 @@
 OBJS = alarm.o when.o warnings.o times.o dates.o file.o fns.o xalarm.o
 SRCS = alarm.c when.c warnings.c times.c dates.c file.c fns.c xalarm.c
 
-# How we find commands.  Use WHICH, LOCATE or FIND.
-WHICH= WHICH
-MADE = test -f
+XAWLIB = ${LIBXAW}
 
 LOCAL_LIBRARIES = XawClientLibs
 
-AllTarget (.config)
 ComplexProgramTarget (xalarm)
 
 InstallAppDefaults (XAlarm)
 InstallAppDefaults (XAlarm-color)
 InstallMultipleFlags (xmemo xfortune xyow,$(BINDIR),$(INSTBINFLAGS))
-InstallManPage (xmemo,$(MANDIR))
-InstallManPage (xfortune,$(MANDIR))
-InstallManPage (xyow,$(MANDIR))
-
-includes:: fns.h
-
-fns.h:
-	@./config.1st -quick $(WHICH) fortune yow
-
-xmemo.man xyow.man xfortune.man:
-	echo ".so man"`echo ManSuffix`"/xalarm."`echo ManSuffix` > $@
+InstallManPageAliases(xalarm,$(MANDIR),xmemo xfortune xyow)
 
 xfortune::
 
@@ -60,14 +47,6 @@
 clean::
 	$(RM) xfortune xyow xmemo.man xyow.man xfortune.man fns.h .config
 
-config::
-	@./config.1st -quick $(WHICH) fortune yow
-	@xrdb -merge XAlarm.ad
-	@xrdb -merge XAlarm.ad+
-
-.config::
-	@-$(MADE) .config || make config
-
 alarm.o:	xalarm.h patchlevel.h
 when.o:		xalarm.h patchlevel.h dates.h
 warnings.o:	xalarm.h patchlevel.h