summaryrefslogtreecommitdiff
path: root/audio/tracker/files/patch-aa
blob: 1c1b8660ad29519f620aedfceb04ec829c0aa313 (plain) (blame)
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
*** Makefile.old	Sat Jan 28 12:51:48 1995
--- Makefile	Sat Jan 28 14:24:11 1995
***************
*** 11,17 ****
  #  hpalib, hplow, hp3, dec, solaris, sparc, linux, freebsd, sgi, 
  #  soundblaster, aix.
  # gmake needed to handle this file in FreeBSD
! MACHINE = sparc
  
  # The name of your C compiler. For most machines this will be
  # either 'cc' or 'gcc'.
--- 11,17 ----
  #  hpalib, hplow, hp3, dec, solaris, sparc, linux, freebsd, sgi, 
  #  soundblaster, aix.
  # gmake needed to handle this file in FreeBSD
! MACHINE = freebsd
  
  # The name of your C compiler. For most machines this will be
  # either 'cc' or 'gcc'.
***************
*** 30,40 ****
  #
  # If you don't wish to use the 'make install' and 'make install.man'
  # commands, you can ignore these.
! BIN_DIR = /users/algo/espie/pub/bin
! MAN_DIR = /usr/local/man
  
  # Where to put the compression methods description
! COMPRESSION_FILE=/users/algo/espie/pub/lib/compression_methods
  
  # How to install the binaries and manpage. If you have a unix system,
  # use the GNU install program if you have it, otherwise try 'cp'. For
--- 30,44 ----
  #
  # If you don't wish to use the 'make install' and 'make install.man'
  # commands, you can ignore these.
! PREFIX=/usr/local
! #BIN_DIR = /users/algo/espie/pub/bin
! BIN_DIR = $(PREFIX)/bin
! #MAN_DIR = /usr/local/man
! MAN_DIR = $(PREFIX)/man
  
  # Where to put the compression methods description
! #COMPRESSION_FILE=/users/algo/espie/pub/lib/compression_methods
! COMPRESSION_FILE=$(PREFIX)/etc/compression_methods
  
  # How to install the binaries and manpage. If you have a unix system,
  # use the GNU install program if you have it, otherwise try 'cp'. For
***************
*** 55,62 ****
  #
  # If you don't wish to use the 'make install' and 'make install.man'
  # commands, you can ignore these.
! INST_BIN_OPT = -s -m 755 -o root -g root
! INST_MAN_OPT = -m 644 -o root -g root
  ###############################################################################
  #
  # C compiler flags and libraries for each machine.
--- 59,68 ----
  #
  # If you don't wish to use the 'make install' and 'make install.man'
  # commands, you can ignore these.
! #INST_BIN_OPT = -s -m 755 -o root -g root
! #INST_MAN_OPT = -m 644 -o root -g root
! INST_BIN_OPT = -c -s -m 555 -o bin -g bin
! INST_MAN_OPT = -c -m 644 -o bin -g bin
  ###############################################################################
  #
  # C compiler flags and libraries for each machine.
***************
*** 154,159 ****
--- 160,168 ----
  	$(INSTALL) $(INST_BIN_OPT) tracker $(BIN_DIR)
  	$(INSTALL) $(INST_BIN_OPT) randomize $(BIN_DIR)
  	$(INSTALL) $(INST_BIN_OPT) analyzer $(BIN_DIR)
+ 	$(INSTALL) $(INST_BIN_OPT) splitmod $(BIN_DIR)
+ 	[ -f ${COMPRESSION_FILE} ] || \
+ 	   $(INSTALL) $(INST_MAN_OPT) compression_methods ${COMPRESSION_FILE}
  
  install.man:
  	$(INSTALL) $(INST_MAN_OPT) man/tracker.1 $(MAN_DIR)/man1/tracker.1
*** Unix/ui.c.old	Sat Jan 28 12:57:02 1995
--- Unix/ui.c	Sat Jan 28 14:41:15 1995
***************
*** 148,153 ****
--- 148,162 ----
        return FALSE;
     }
  
+ /* if_fg_sane_tty():
+  * restore tty modes, _only_ if running in foreground
+  */
+ LOCAL void if_fg_sane_tty()
+    {
+    if (run_in_fg())
+        sane_tty();
+    }
+ 
  LOCAL void switch_mode()
     {
  #ifdef __NeXT__
***************
*** 200,206 ****
  #endif
        zap.c_lflag &= ~(ICANON | ECHO);
  #ifdef __FreeBSD__
!       tcsetattr(fileno(stdin), TCSANOW, &zap);
  #else
        ioctl(fileno(stdin), TCSETA, &zap);
  #endif
--- 209,215 ----
  #endif
        zap.c_lflag &= ~(ICANON | ECHO);
  #ifdef __FreeBSD__
!       tcsetattr(fileno(stdin), TCSADRAIN, &zap);
  #else
        ioctl(fileno(stdin), TCSETA, &zap);
  #endif
***************
*** 227,240 ****
        ioctl(fileno(stdin), TIOCGETP, psanity);
  #else /* __NeXT__ */
  #ifdef __FreeBSD__
!       tcgetattr(fileno(stdin), &sanity);
  #else
        ioctl(fileno(stdin), TCGETA, psanity);
  #endif
  #endif /* __NeXT__ */
        }
     switch_mode();
!    at_end(sane_tty);
     }
  
  
--- 236,249 ----
        ioctl(fileno(stdin), TIOCGETP, psanity);
  #else /* __NeXT__ */
  #ifdef __FreeBSD__
!       tcgetattr(fileno(stdin), psanity);
  #else
        ioctl(fileno(stdin), TCGETA, psanity);
  #endif
  #endif /* __NeXT__ */
        }
     switch_mode();
!    at_end(if_fg_sane_tty);
     }
  
  
***************
*** 246,252 ****
        ioctl(fileno(stdin), TIOCSETP, psanity);
  #else /* __NeXT__ */
  #ifdef __FreeBSD__
!       tcsetattr(fileno(stdin), &sanity);
  #else
        ioctl(fileno(stdin), TCSETA, psanity);
  #endif
--- 255,261 ----
        ioctl(fileno(stdin), TIOCSETP, psanity);
  #else /* __NeXT__ */
  #ifdef __FreeBSD__
!       tcsetattr(fileno(stdin), TCSADRAIN, psanity);
  #else
        ioctl(fileno(stdin), TCSETA, psanity);
  #endif