1999-04-30 22:38:50 +04:00
|
|
|
#!gmake
|
|
|
|
#
|
1999-11-02 02:33:56 +03:00
|
|
|
# The contents of this file are subject to the Netscape Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/NPL/
|
1999-04-30 22:38:50 +04:00
|
|
|
#
|
1999-11-02 02:33:56 +03:00
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
1999-04-30 22:38:50 +04:00
|
|
|
#
|
|
|
|
# The Original Code is the Bonsai CVS tool.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape Communications
|
1999-11-02 02:33:56 +03:00
|
|
|
# Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-04-30 22:38:50 +04:00
|
|
|
|
|
|
|
|
1999-07-23 22:39:31 +04:00
|
|
|
# This Makefile helps you install Bonsai. Define PERL to
|
1999-04-30 22:38:50 +04:00
|
|
|
# the full pathnames of where you have these utilities. Define PREFIX
|
|
|
|
# to where you will install the running Bonsai. Then "make install" should
|
|
|
|
# copy things for you.
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
# -lcrypt
|
|
|
|
LDFLAGS = @LIBS@
|
|
|
|
# /usr/bin/perl
|
|
|
|
PERL = @PERL@
|
|
|
|
# /var/www/bonsai
|
|
|
|
PREFIX = @prefix@/bonsai
|
|
|
|
|
|
|
|
CVS=@CVS@
|
|
|
|
RLOG=@RLOG@
|
|
|
|
CO=@CO@
|
|
|
|
RCSDIFF=@RCSDIFF@
|
|
|
|
|
1999-07-23 22:39:31 +04:00
|
|
|
FILES = CGI.pl \
|
1999-04-30 22:38:50 +04:00
|
|
|
SourceChecker.cgi \
|
|
|
|
SourceChecker.pm \
|
1999-07-23 22:39:31 +04:00
|
|
|
addcheckin.pl \
|
1999-04-30 22:38:50 +04:00
|
|
|
admin.cgi \
|
1999-07-23 22:39:31 +04:00
|
|
|
adminfuncs.pl \
|
1999-09-15 18:50:45 +04:00
|
|
|
adminmail.pl \
|
1999-04-30 22:38:50 +04:00
|
|
|
branchspam.cgi \
|
|
|
|
branchspammer.cgi \
|
|
|
|
closemessage \
|
|
|
|
contacthelp.html \
|
|
|
|
countcheckins.cgi \
|
1999-07-23 22:39:31 +04:00
|
|
|
createlegaldirs.pl \
|
1999-04-30 22:38:50 +04:00
|
|
|
cvsblame.cgi \
|
|
|
|
cvsblame.pl \
|
|
|
|
cvsguess.cgi \
|
|
|
|
cvsindex.pl \
|
|
|
|
cvslog.cgi \
|
|
|
|
cvsmenu.pl \
|
|
|
|
cvsquery.cgi \
|
|
|
|
cvsquery.pl \
|
|
|
|
cvsqueryform.cgi \
|
|
|
|
cvsregexp.html \
|
|
|
|
cvsview2.cgi \
|
1999-09-15 18:50:45 +04:00
|
|
|
defparams.pl \
|
1999-04-30 22:38:50 +04:00
|
|
|
doadmin.cgi \
|
|
|
|
doeditcheckin.cgi \
|
|
|
|
doeditmessage.cgi \
|
1999-09-15 18:50:45 +04:00
|
|
|
doeditparams.cgi \
|
1999-04-30 22:38:50 +04:00
|
|
|
doeditwhiteboard.cgi \
|
|
|
|
dolog.pl \
|
|
|
|
dotweak.cgi \
|
|
|
|
editcheckin.cgi \
|
|
|
|
editmessage.cgi \
|
1999-09-15 18:50:45 +04:00
|
|
|
editparams.cgi \
|
1999-04-30 22:38:50 +04:00
|
|
|
editwhiteboard.cgi \
|
1999-11-13 00:14:29 +03:00
|
|
|
get_line.pl \
|
1999-07-23 22:39:31 +04:00
|
|
|
globals.pl \
|
|
|
|
handleAdminMail.pl \
|
|
|
|
handleCheckinMail.pl \
|
1999-04-30 22:38:50 +04:00
|
|
|
header.pl \
|
|
|
|
index.html \
|
|
|
|
indextest.pl \
|
|
|
|
lloydcgi.pl \
|
|
|
|
maketables.sh \
|
|
|
|
moduleanalyse.cgi \
|
|
|
|
modules.pl \
|
|
|
|
multidiff.cgi \
|
|
|
|
openmessage \
|
|
|
|
processqueue.pl \
|
|
|
|
rebuildcvshistory.cgi \
|
|
|
|
repophook.cgi \
|
|
|
|
reposfiles.pl \
|
|
|
|
rview.cgi \
|
|
|
|
showcheckins.cgi \
|
|
|
|
switchtree.cgi \
|
|
|
|
testlock.pl \
|
|
|
|
toplevel.cgi \
|
|
|
|
utils.pl \
|
|
|
|
viewold.cgi
|
|
|
|
|
1999-07-23 22:39:31 +04:00
|
|
|
all: trapdoor treeconfig.pl params
|
1999-04-30 22:38:50 +04:00
|
|
|
|
|
|
|
trapdoor: trapdoor.o
|
|
|
|
$(CC) -o trapdoor trapdoor.o $(LDFLAGS)
|
|
|
|
|
1999-07-23 22:39:31 +04:00
|
|
|
treeconfig.pl: treeconfig.pl.in
|
|
|
|
cp treeconfig.pl.in treeconfig.pl
|
|
|
|
|
|
|
|
params: params.in
|
1999-04-30 22:38:50 +04:00
|
|
|
sed -e s#_CVS_#$(CVS)#g \
|
|
|
|
-e s#_RLOG_#$(RLOG)#g \
|
|
|
|
-e s#_CO_#$(CO)#g \
|
|
|
|
-e s#_RCSDIFF_#$(RCSDIFF)#g \
|
|
|
|
$< >$@
|
|
|
|
|
1999-07-23 22:39:31 +04:00
|
|
|
install: all
|
1999-04-30 22:38:50 +04:00
|
|
|
-mkdir -p $(PREFIX)
|
|
|
|
@for I in $(FILES); do \
|
|
|
|
echo Installing $$I && \
|
|
|
|
sed -e s#/usr/bonsaitools/bin/perl#$(PERL)#g \
|
|
|
|
-e s#/tools/ns/bin/perl5#$(PERL)#g \
|
|
|
|
$$I > $(PREFIX)/$$I && \
|
|
|
|
chmod 755 $(PREFIX)/$$I; done
|
1999-04-30 23:20:16 +04:00
|
|
|
-mkdir -p $(PREFIX)/data && chmod 755 $(PREFIX)/data
|
1999-04-30 22:38:50 +04:00
|
|
|
cp trapdoor $(PREFIX)/data
|
|
|
|
cp bonsai.gif $(PREFIX)
|
|
|
|
chmod 755 $(PREFIX)/bonsai.gif
|
1999-07-23 22:39:31 +04:00
|
|
|
@if test ! -r $(PREFIX)/data/treeconfig.pl ; then \
|
|
|
|
echo "Installing treeconfig.pl" && \
|
|
|
|
cp treeconfig.pl $(PREFIX)/data ; \
|
|
|
|
else \
|
|
|
|
echo ; \
|
|
|
|
echo "Not replacing existing treeconfig.pl" ; \
|
|
|
|
echo "Check treeconfig.pl in build directory for new features" ; \
|
|
|
|
fi
|
|
|
|
@if test ! -r $(PREFIX)/data/params ; then \
|
|
|
|
echo "Installing params" && \
|
|
|
|
cp params $(PREFIX)/data ; \
|
1999-04-30 22:38:50 +04:00
|
|
|
else \
|
|
|
|
echo ; \
|
1999-07-23 22:39:31 +04:00
|
|
|
echo "Not replacing existing params" ; \
|
1999-04-30 22:38:50 +04:00
|
|
|
fi
|
|
|
|
@echo
|
|
|
|
@echo "If you are installing a new Bonsai (not upgrading), you should"
|
|
|
|
@echo "run maketables.sh to create database tables, then customize the"
|
1999-07-23 22:39:31 +04:00
|
|
|
@echo "Bonsai configuration in $(PREFIX)/data/treeconfig.pl"
|
1999-04-30 22:38:50 +04:00
|
|
|
|
|
|
|
clean:
|
1999-07-23 22:39:31 +04:00
|
|
|
rm -f trapdoor trapdoor.o treeconfig.pl params
|