CVSTrac Legacy Code

Check-in [ede2546f24]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:add support for incoming {link:http://trac.edgewall.org/wiki/InterTrac InterTrac} links. This allows Trac sites to reference CVSTrac objects most naturally.

Outgoing InterTrac links _from_ a CVSTrac install can be accomplished with custom markup, as in:

{quote:%x}

which would be referenced via something like:

{quote:{<markup>: ticket:451 #451}} {quote:{trac: wiki:InterTrac InterTrac}}
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ede2546f2456203ee37699260b1924a42425d55b
User & Date: cpb 2009-03-27 13:40:31
Context
2009-03-27
23:53
some style cleanups, get rid of unused variables, etc. check-in: d8dd0972d4 user: cpb tags: trunk
13:40
add support for incoming {link:http://trac.edgewall.org/wiki/InterTrac InterTrac} links. This allows Trac sites to reference CVSTrac objects most naturally.

Outgoing InterTrac links _from_ a CVSTrac install can be accomplished with custom markup, as in:

{quote:%x}

which would be referenced via something like:

{quote:{<markup>: ticket:451 #451}} {quote:{trac: wiki:InterTrac InterTrac}}
check-in: ede2546f24 user: cpb tags: trunk
2009-03-14
02:07
(#791) fine tune the report RSS output. This makes it reasonably functional, although I'm not entirely happy with how dates are(n't) managed. check-in: 340df5c3bf user: cpb tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added intertrac.c.











































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
/*
** Copyright (c) 2002 D. Richard Hipp
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
** General Public License for more details.
** 
** You should have received a copy of the GNU General Public
** License along with this library; if not, write to the
** Free Software Foundation, Inc., 59 Temple Place - Suite 330,
** Boston, MA  02111-1307, USA.
**
** Author contact information:
**   drh@hwaci.com
**   http://www.hwaci.com/drh/
**
*******************************************************************************
**
** This file contains code used to support the "intertrac" protocol.
*/
#include <time.h>
#include <assert.h>
#include "config.h"
#include "intertrac.h"

/*
** A webpage to redirect intertrac requests
**
** WEBPAGE: /intertrac
*/
void intertrac(void){
  const char *zTime;
  const char *zMsg, *zOldMsg;
  time_t tm = 0;
  int cn;
  int mtype;
  const char *zMType;
  const char *zBr;
  char **az;
  char **azAllBr;
  struct tm *pTm;
  char zDate[200];

  login_check_credentials();
  throttle(1,1);

  /* parse object type and paramter from g.zExtra */
  char *z = strchr(g.zExtra, ':');
  if( z ){
    *(z++) = 0;

    if( !strcmp(g.zExtra,"ticket") ){
	   cgi_redirect(mprintf("%s/tktview?tn=%T", g.zBaseURL, z));
    }else if( !strcmp(g.zExtra,"wiki") ){
	   cgi_redirect(mprintf("%s/wiki?p=%T", g.zBaseURL, z));
    }else if( !strcmp(g.zExtra,"changeset") || !strcmp(g.zExtra,"milestone")
      || !strcmp(g.zExtra,"log")
    ){
	   cgi_redirect(mprintf("%s/chngview?cn=%T", g.zBaseURL, z));
    }else if( !strcmp(g.zExtra,"report") ){
	   cgi_redirect(mprintf("%s/rptview?rn=%T", g.zBaseURL, z));
    }else if( !strcmp(g.zExtra,"attachment") ){
	   cgi_redirect(mprintf("%s/attach_get/%T", g.zBaseURL, z));
    }else if( !strcmp(g.zExtra,"source") ){
	   cgi_redirect(mprintf("%s/fileview?f=%T", g.zBaseURL, z));
    }else if( !strcmp(g.zExtra,"browser") ){
	   if( is_repository_file(z) ){
		   cgi_redirect(mprintf("%s/fileview?f=%T", g.zBaseURL, z));
	   }else{
		   cgi_redirect(mprintf("%s/dirview?d=%T", g.zBaseURL, z));
	   }
    }

	 /* not found. Fallback to search */
	 cgi_redirect(mprintf("%s/search?s=%T", g.zBaseURL, z));
  }

  cgi_redirect(mprintf("%s/search?s=%T", g.zBaseURL, g.zExtra));
}

Changes to main.mk.

14
15
16
17
18
19
20

21
22
23
24
25
26
27
..
43
44
45
46
47
48
49

50
51
52
53
54
55
56
..
72
73
74
75
76
77
78

79
80
81
82
83
84
85
..
89
90
91
92
93
94
95
96
97
98
99
100
101


102
103
104
105
106
107
108
...
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255










256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
  $(SRCDIR)/css.c \
  $(SRCDIR)/cvs.c \
  $(SRCDIR)/db.c \
  $(SRCDIR)/format.c \
  $(SRCDIR)/git.c \
  $(SRCDIR)/history.c \
  $(SRCDIR)/index.c \

  $(SRCDIR)/login.c \
  $(SRCDIR)/main.c \
  $(SRCDIR)/md5.c \
  $(SRCDIR)/rss.c \
  $(SRCDIR)/search.c \
  $(SRCDIR)/setup.c \
  $(SRCDIR)/svn.c \
................................................................................
  css_.c \
  cvs_.c \
  db_.c \
  format_.c \
  git_.c \
  history_.c \
  index_.c \

  login_.c \
  main_.c \
  md5_.c \
  rss_.c \
  search_.c \
  setup_.c \
  svn_.c \
................................................................................
  css.o \
  cvs.o \
  db.o \
  format.o \
  git.o \
  history.o \
  index.o \

  login.o \
  main.o \
  md5.o \
  rss.o \
  search.o \
  setup.o \
  svn.o \
................................................................................
  timeline.o \
  tools.o \
  user.o \
  view.o \
  wiki.o \
  wikiinit.o

# Set default application name and make sure we got extension
ifndef APPNAME
APPNAME = cvstrac$(E)
else
override APPNAME := $(APPNAME:$(E)=)$(E)
endif



all:	$(APPNAME) index.html

install:	$(APPNAME)
	mv $(APPNAME) $(INSTALLDIR)

translate:	$(SRCDIR)/translate.c
................................................................................
$(APPNAME):	headers $(OBJ)
	$(TCC) -o $(APPNAME) $(OBJ) $(LIBSQLITE)

index.html:	$(SRCDIR)/webpage.html $(SRCDIR)/VERSION
	sed -f $(SRCDIR)/VERSION $(SRCDIR)/webpage.html >index.html

clean:	
	rm -f *.o *_.c css.c $(APPNAME)
	rm -f makewikiinit$(E) maketestdb$(E) makecss$(E)
	rm -f translate$(E) makeheaders$(E) mkindex$(E) page_index.h index.html headers
	rm -f attach.h browse.h cgi.h common.h css.h cvs.h db.h format.h git.h history.h index.h login.h main.h md5.h rss.h search.h setup.h svn.h test.h throttle.h ticket.h timeline.h tools.h user.h view.h wiki.h wikiinit.h

headers:	makeheaders mkindex $(TRANS_SRC)
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	./mkindex $(TRANS_SRC) >page_index.h
	touch headers

attach_.c:	$(SRCDIR)/attach.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/attach.c | sed -f $(SRCDIR)/VERSION >attach_.c

attach.o:	attach_.c attach.h  $(SRCDIR)/config.h
	$(XTCC) -o attach.o -c attach_.c

attach.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

browse_.c:	$(SRCDIR)/browse.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/browse.c | sed -f $(SRCDIR)/VERSION >browse_.c

browse.o:	browse_.c browse.h  $(SRCDIR)/config.h
	$(XTCC) -o browse.o -c browse_.c

browse.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

cgi_.c:	$(SRCDIR)/cgi.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/cgi.c | sed -f $(SRCDIR)/VERSION >cgi_.c

cgi.o:	cgi_.c cgi.h  $(SRCDIR)/config.h
	$(XTCC) -o cgi.o -c cgi_.c

cgi.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

common_.c:	$(SRCDIR)/common.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/common.c | sed -f $(SRCDIR)/VERSION >common_.c

common.o:	common_.c common.h  $(SRCDIR)/config.h
	$(XTCC) -o common.o -c common_.c

common.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

css_.c:	$(SRCDIR)/css.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/css.c | sed -f $(SRCDIR)/VERSION >css_.c

css.o:	css_.c css.h  $(SRCDIR)/config.h
	$(XTCC) -o css.o -c css_.c

css.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

cvs_.c:	$(SRCDIR)/cvs.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/cvs.c | sed -f $(SRCDIR)/VERSION >cvs_.c

cvs.o:	cvs_.c cvs.h  $(SRCDIR)/config.h
	$(XTCC) -o cvs.o -c cvs_.c

cvs.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

db_.c:	$(SRCDIR)/db.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/db.c | sed -f $(SRCDIR)/VERSION >db_.c

db.o:	db_.c db.h  $(SRCDIR)/config.h
	$(XTCC) -o db.o -c db_.c

db.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

format_.c:	$(SRCDIR)/format.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/format.c | sed -f $(SRCDIR)/VERSION >format_.c

format.o:	format_.c format.h  $(SRCDIR)/config.h
	$(XTCC) -o format.o -c format_.c

format.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

git_.c:	$(SRCDIR)/git.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/git.c | sed -f $(SRCDIR)/VERSION >git_.c

git.o:	git_.c git.h  $(SRCDIR)/config.h
	$(XTCC) -o git.o -c git_.c

git.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

history_.c:	$(SRCDIR)/history.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/history.c | sed -f $(SRCDIR)/VERSION >history_.c

history.o:	history_.c history.h  $(SRCDIR)/config.h
	$(XTCC) -o history.o -c history_.c

history.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

index_.c:	$(SRCDIR)/index.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/index.c | sed -f $(SRCDIR)/VERSION >index_.c

index.o:	index_.c index.h  $(SRCDIR)/config.h
	$(XTCC) -o index.o -c index_.c

index.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h










	touch headers

login_.c:	$(SRCDIR)/login.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/login.c | sed -f $(SRCDIR)/VERSION >login_.c

login.o:	login_.c login.h  $(SRCDIR)/config.h
	$(XTCC) -o login.o -c login_.c

login.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

main_.c:	$(SRCDIR)/main.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/main.c | sed -f $(SRCDIR)/VERSION >main_.c

main.o:	main_.c main.h page_index.h $(SRCDIR)/config.h
	$(XTCC) -o main.o -c main_.c

main.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

md5_.c:	$(SRCDIR)/md5.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/md5.c | sed -f $(SRCDIR)/VERSION >md5_.c

md5.o:	md5_.c md5.h  $(SRCDIR)/config.h
	$(XTCC) -o md5.o -c md5_.c

md5.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

rss_.c:	$(SRCDIR)/rss.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/rss.c | sed -f $(SRCDIR)/VERSION >rss_.c

rss.o:	rss_.c rss.h  $(SRCDIR)/config.h
	$(XTCC) -o rss.o -c rss_.c

rss.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

search_.c:	$(SRCDIR)/search.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/search.c | sed -f $(SRCDIR)/VERSION >search_.c

search.o:	search_.c search.h  $(SRCDIR)/config.h
	$(XTCC) -o search.o -c search_.c

search.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

setup_.c:	$(SRCDIR)/setup.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/setup.c | sed -f $(SRCDIR)/VERSION >setup_.c

setup.o:	setup_.c setup.h  $(SRCDIR)/config.h
	$(XTCC) -o setup.o -c setup_.c

setup.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

svn_.c:	$(SRCDIR)/svn.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/svn.c | sed -f $(SRCDIR)/VERSION >svn_.c

svn.o:	svn_.c svn.h  $(SRCDIR)/config.h
	$(XTCC) -o svn.o -c svn_.c

svn.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

test_.c:	$(SRCDIR)/test.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/test.c | sed -f $(SRCDIR)/VERSION >test_.c

test.o:	test_.c test.h  $(SRCDIR)/config.h
	$(XTCC) -o test.o -c test_.c

test.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

throttle_.c:	$(SRCDIR)/throttle.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/throttle.c | sed -f $(SRCDIR)/VERSION >throttle_.c

throttle.o:	throttle_.c throttle.h  $(SRCDIR)/config.h
	$(XTCC) -o throttle.o -c throttle_.c

throttle.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

ticket_.c:	$(SRCDIR)/ticket.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/ticket.c | sed -f $(SRCDIR)/VERSION >ticket_.c

ticket.o:	ticket_.c ticket.h  $(SRCDIR)/config.h
	$(XTCC) -o ticket.o -c ticket_.c

ticket.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

timeline_.c:	$(SRCDIR)/timeline.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/timeline.c | sed -f $(SRCDIR)/VERSION >timeline_.c

timeline.o:	timeline_.c timeline.h  $(SRCDIR)/config.h
	$(XTCC) -o timeline.o -c timeline_.c

timeline.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

tools_.c:	$(SRCDIR)/tools.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/tools.c | sed -f $(SRCDIR)/VERSION >tools_.c

tools.o:	tools_.c tools.h  $(SRCDIR)/config.h
	$(XTCC) -o tools.o -c tools_.c

tools.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

user_.c:	$(SRCDIR)/user.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/user.c | sed -f $(SRCDIR)/VERSION >user_.c

user.o:	user_.c user.h  $(SRCDIR)/config.h
	$(XTCC) -o user.o -c user_.c

user.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

view_.c:	$(SRCDIR)/view.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/view.c | sed -f $(SRCDIR)/VERSION >view_.c

view.o:	view_.c view.h  $(SRCDIR)/config.h
	$(XTCC) -o view.o -c view_.c

view.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

wiki_.c:	$(SRCDIR)/wiki.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/wiki.c | sed -f $(SRCDIR)/VERSION >wiki_.c

wiki.o:	wiki_.c wiki.h  $(SRCDIR)/config.h
	$(XTCC) -o wiki.o -c wiki_.c

wiki.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

wikiinit_.c:	$(SRCDIR)/wikiinit.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/wikiinit.c | sed -f $(SRCDIR)/VERSION >wikiinit_.c

wikiinit.o:	wikiinit_.c wikiinit.h  $(SRCDIR)/config.h
	$(XTCC) -o wikiinit.o -c wikiinit_.c

wikiinit.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers








>







 







>







 







>







 







<
<

<
<
<
>
>







 







|
|
|
|


|










|









|









|









|









|









|









|









|









|









|









|
>
>
>
>
>
>
>
>
>
>









|









|









|









|









|









|









|









|









|









|









|









|









|









|









|









|


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
..
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
..
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
..
92
93
94
95
96
97
98


99



100
101
102
103
104
105
106
107
108
...
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
  $(SRCDIR)/css.c \
  $(SRCDIR)/cvs.c \
  $(SRCDIR)/db.c \
  $(SRCDIR)/format.c \
  $(SRCDIR)/git.c \
  $(SRCDIR)/history.c \
  $(SRCDIR)/index.c \
  $(SRCDIR)/intertrac.c \
  $(SRCDIR)/login.c \
  $(SRCDIR)/main.c \
  $(SRCDIR)/md5.c \
  $(SRCDIR)/rss.c \
  $(SRCDIR)/search.c \
  $(SRCDIR)/setup.c \
  $(SRCDIR)/svn.c \
................................................................................
  css_.c \
  cvs_.c \
  db_.c \
  format_.c \
  git_.c \
  history_.c \
  index_.c \
  intertrac_.c \
  login_.c \
  main_.c \
  md5_.c \
  rss_.c \
  search_.c \
  setup_.c \
  svn_.c \
................................................................................
  css.o \
  cvs.o \
  db.o \
  format.o \
  git.o \
  history.o \
  index.o \
  intertrac.o \
  login.o \
  main.o \
  md5.o \
  rss.o \
  search.o \
  setup.o \
  svn.o \
................................................................................
  timeline.o \
  tools.o \
  user.o \
  view.o \
  wiki.o \
  wikiinit.o



APPNAME = cvstrac$(E)






all:	$(APPNAME) index.html

install:	$(APPNAME)
	mv $(APPNAME) $(INSTALLDIR)

translate:	$(SRCDIR)/translate.c
................................................................................
$(APPNAME):	headers $(OBJ)
	$(TCC) -o $(APPNAME) $(OBJ) $(LIBSQLITE)

index.html:	$(SRCDIR)/webpage.html $(SRCDIR)/VERSION
	sed -f $(SRCDIR)/VERSION $(SRCDIR)/webpage.html >index.html

clean:	
	rm -f *.o *_.c $(APPNAME)
	rm -f makewikiinit maketestdb makecss
	rm -f translate makeheaders mkindex page_index.h index.html headers
	rm -f attach.h browse.h cgi.h common.h css.h cvs.h db.h format.h git.h history.h index.h intertrac.h login.h main.h md5.h rss.h search.h setup.h svn.h test.h throttle.h ticket.h timeline.h tools.h user.h view.h wiki.h wikiinit.h

headers:	makeheaders mkindex $(TRANS_SRC)
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	./mkindex $(TRANS_SRC) >page_index.h
	touch headers

attach_.c:	$(SRCDIR)/attach.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/attach.c | sed -f $(SRCDIR)/VERSION >attach_.c

attach.o:	attach_.c attach.h  $(SRCDIR)/config.h
	$(XTCC) -o attach.o -c attach_.c

attach.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

browse_.c:	$(SRCDIR)/browse.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/browse.c | sed -f $(SRCDIR)/VERSION >browse_.c

browse.o:	browse_.c browse.h  $(SRCDIR)/config.h
	$(XTCC) -o browse.o -c browse_.c

browse.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

cgi_.c:	$(SRCDIR)/cgi.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/cgi.c | sed -f $(SRCDIR)/VERSION >cgi_.c

cgi.o:	cgi_.c cgi.h  $(SRCDIR)/config.h
	$(XTCC) -o cgi.o -c cgi_.c

cgi.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

common_.c:	$(SRCDIR)/common.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/common.c | sed -f $(SRCDIR)/VERSION >common_.c

common.o:	common_.c common.h  $(SRCDIR)/config.h
	$(XTCC) -o common.o -c common_.c

common.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

css_.c:	$(SRCDIR)/css.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/css.c | sed -f $(SRCDIR)/VERSION >css_.c

css.o:	css_.c css.h  $(SRCDIR)/config.h
	$(XTCC) -o css.o -c css_.c

css.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

cvs_.c:	$(SRCDIR)/cvs.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/cvs.c | sed -f $(SRCDIR)/VERSION >cvs_.c

cvs.o:	cvs_.c cvs.h  $(SRCDIR)/config.h
	$(XTCC) -o cvs.o -c cvs_.c

cvs.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

db_.c:	$(SRCDIR)/db.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/db.c | sed -f $(SRCDIR)/VERSION >db_.c

db.o:	db_.c db.h  $(SRCDIR)/config.h
	$(XTCC) -o db.o -c db_.c

db.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

format_.c:	$(SRCDIR)/format.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/format.c | sed -f $(SRCDIR)/VERSION >format_.c

format.o:	format_.c format.h  $(SRCDIR)/config.h
	$(XTCC) -o format.o -c format_.c

format.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

git_.c:	$(SRCDIR)/git.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/git.c | sed -f $(SRCDIR)/VERSION >git_.c

git.o:	git_.c git.h  $(SRCDIR)/config.h
	$(XTCC) -o git.o -c git_.c

git.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

history_.c:	$(SRCDIR)/history.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/history.c | sed -f $(SRCDIR)/VERSION >history_.c

history.o:	history_.c history.h  $(SRCDIR)/config.h
	$(XTCC) -o history.o -c history_.c

history.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

index_.c:	$(SRCDIR)/index.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/index.c | sed -f $(SRCDIR)/VERSION >index_.c

index.o:	index_.c index.h  $(SRCDIR)/config.h
	$(XTCC) -o index.o -c index_.c

index.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

intertrac_.c:	$(SRCDIR)/intertrac.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/intertrac.c | sed -f $(SRCDIR)/VERSION >intertrac_.c

intertrac.o:	intertrac_.c intertrac.h  $(SRCDIR)/config.h
	$(XTCC) -o intertrac.o -c intertrac_.c

intertrac.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

login_.c:	$(SRCDIR)/login.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/login.c | sed -f $(SRCDIR)/VERSION >login_.c

login.o:	login_.c login.h  $(SRCDIR)/config.h
	$(XTCC) -o login.o -c login_.c

login.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

main_.c:	$(SRCDIR)/main.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/main.c | sed -f $(SRCDIR)/VERSION >main_.c

main.o:	main_.c main.h page_index.h $(SRCDIR)/config.h
	$(XTCC) -o main.o -c main_.c

main.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

md5_.c:	$(SRCDIR)/md5.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/md5.c | sed -f $(SRCDIR)/VERSION >md5_.c

md5.o:	md5_.c md5.h  $(SRCDIR)/config.h
	$(XTCC) -o md5.o -c md5_.c

md5.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

rss_.c:	$(SRCDIR)/rss.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/rss.c | sed -f $(SRCDIR)/VERSION >rss_.c

rss.o:	rss_.c rss.h  $(SRCDIR)/config.h
	$(XTCC) -o rss.o -c rss_.c

rss.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

search_.c:	$(SRCDIR)/search.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/search.c | sed -f $(SRCDIR)/VERSION >search_.c

search.o:	search_.c search.h  $(SRCDIR)/config.h
	$(XTCC) -o search.o -c search_.c

search.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

setup_.c:	$(SRCDIR)/setup.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/setup.c | sed -f $(SRCDIR)/VERSION >setup_.c

setup.o:	setup_.c setup.h  $(SRCDIR)/config.h
	$(XTCC) -o setup.o -c setup_.c

setup.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

svn_.c:	$(SRCDIR)/svn.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/svn.c | sed -f $(SRCDIR)/VERSION >svn_.c

svn.o:	svn_.c svn.h  $(SRCDIR)/config.h
	$(XTCC) -o svn.o -c svn_.c

svn.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

test_.c:	$(SRCDIR)/test.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/test.c | sed -f $(SRCDIR)/VERSION >test_.c

test.o:	test_.c test.h  $(SRCDIR)/config.h
	$(XTCC) -o test.o -c test_.c

test.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

throttle_.c:	$(SRCDIR)/throttle.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/throttle.c | sed -f $(SRCDIR)/VERSION >throttle_.c

throttle.o:	throttle_.c throttle.h  $(SRCDIR)/config.h
	$(XTCC) -o throttle.o -c throttle_.c

throttle.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

ticket_.c:	$(SRCDIR)/ticket.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/ticket.c | sed -f $(SRCDIR)/VERSION >ticket_.c

ticket.o:	ticket_.c ticket.h  $(SRCDIR)/config.h
	$(XTCC) -o ticket.o -c ticket_.c

ticket.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

timeline_.c:	$(SRCDIR)/timeline.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/timeline.c | sed -f $(SRCDIR)/VERSION >timeline_.c

timeline.o:	timeline_.c timeline.h  $(SRCDIR)/config.h
	$(XTCC) -o timeline.o -c timeline_.c

timeline.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

tools_.c:	$(SRCDIR)/tools.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/tools.c | sed -f $(SRCDIR)/VERSION >tools_.c

tools.o:	tools_.c tools.h  $(SRCDIR)/config.h
	$(XTCC) -o tools.o -c tools_.c

tools.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

user_.c:	$(SRCDIR)/user.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/user.c | sed -f $(SRCDIR)/VERSION >user_.c

user.o:	user_.c user.h  $(SRCDIR)/config.h
	$(XTCC) -o user.o -c user_.c

user.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

view_.c:	$(SRCDIR)/view.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/view.c | sed -f $(SRCDIR)/VERSION >view_.c

view.o:	view_.c view.h  $(SRCDIR)/config.h
	$(XTCC) -o view.o -c view_.c

view.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

wiki_.c:	$(SRCDIR)/wiki.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/wiki.c | sed -f $(SRCDIR)/VERSION >wiki_.c

wiki.o:	wiki_.c wiki.h  $(SRCDIR)/config.h
	$(XTCC) -o wiki.o -c wiki_.c

wiki.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

wikiinit_.c:	$(SRCDIR)/wikiinit.c $(SRCDIR)/VERSION translate
	./translate $(SRCDIR)/wikiinit.c | sed -f $(SRCDIR)/VERSION >wikiinit_.c

wikiinit.o:	wikiinit_.c wikiinit.h  $(SRCDIR)/config.h
	$(XTCC) -o wikiinit.o -c wikiinit_.c

wikiinit.h:	makeheaders
	./makeheaders  attach_.c:attach.h browse_.c:browse.h cgi_.c:cgi.h common_.c:common.h css_.c:css.h cvs_.c:cvs.h db_.c:db.h format_.c:format.h git_.c:git.h history_.c:history.h index_.c:index.h intertrac_.c:intertrac.h login_.c:login.h main_.c:main.h md5_.c:md5.h rss_.c:rss.h search_.c:search.h setup_.c:setup.h svn_.c:svn.h test_.c:test.h throttle_.c:throttle.h ticket_.c:ticket.h timeline_.c:timeline.h tools_.c:tools.h user_.c:user.h view_.c:view.h wiki_.c:wiki.h wikiinit_.c:wikiinit.h
	touch headers

Changes to makemake.tcl.

14
15
16
17
18
19
20

21
22
23
24
25
26
27
  format
  history
  cvs
  svn
  git
  css
  index

  login
  main
  md5
  rss
  search
  setup
  test







>







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  format
  history
  cvs
  svn
  git
  css
  index
  intertrac
  login
  main
  md5
  rss
  search
  setup
  test