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.
|
|
|
|
|
|
|
|
# /usr/bin/perl
|
|
|
|
PERL = @PERL@
|
|
|
|
# /var/www/bonsai
|
|
|
|
PREFIX = @prefix@/bonsai
|
|
|
|
|
|
|
|
CVS=@CVS@
|
|
|
|
RLOG=@RLOG@
|
|
|
|
CO=@CO@
|
|
|
|
RCSDIFF=@RCSDIFF@
|
2002-02-01 17:32:55 +03:00
|
|
|
CVSGRAPH=@CVSGRAPH@
|
1999-04-30 22:38:50 +04:00
|
|
|
|
1999-07-23 22:39:31 +04:00
|
|
|
FILES = CGI.pl \
|
|
|
|
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
|
|
|
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 \
|
2002-02-01 17:32:55 +03:00
|
|
|
cvsgraph.cgi \
|
1999-04-30 22:38:50 +04:00
|
|
|
cvslog.cgi \
|
|
|
|
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
|
|
|
index.html \
|
|
|
|
maketables.sh \
|
|
|
|
moduleanalyse.cgi \
|
|
|
|
modules.pl \
|
|
|
|
multidiff.cgi \
|
|
|
|
openmessage \
|
|
|
|
rebuildcvshistory.cgi \
|
|
|
|
repophook.cgi \
|
|
|
|
rview.cgi \
|
|
|
|
showcheckins.cgi \
|
|
|
|
switchtree.cgi \
|
|
|
|
toplevel.cgi \
|
2004-10-08 05:06:46 +04:00
|
|
|
viewold.cgi \
|
|
|
|
trapdoor
|
1999-04-30 22:38:50 +04:00
|
|
|
|
2004-10-08 05:06:46 +04:00
|
|
|
all: treeconfig.pl params
|
1999-04-30 22:38:50 +04:00
|
|
|
|
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 \
|
2002-02-01 17:32:55 +03:00
|
|
|
-e s#_CVSGRAPH_#$(CVSGRAPH)#g \
|
1999-04-30 22:38:50 +04:00
|
|
|
$< >$@
|
|
|
|
|
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 bonsai.gif $(PREFIX)
|
|
|
|
chmod 755 $(PREFIX)/bonsai.gif
|
2004-10-08 05:06:46 +04:00
|
|
|
# put trapdoor into data
|
|
|
|
mv $(PREFIX)/trapdoor $(PREFIX)/data
|
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
|
2002-02-01 17:32:55 +03:00
|
|
|
@if test ! -r $(PREFIX)/data/cvsgraph.conf ; then \
|
|
|
|
echo "Installing cvsgraph.conf" && \
|
|
|
|
cp cvsgraph.conf $(PREFIX)/data ; \
|
|
|
|
else \
|
|
|
|
echo ; \
|
|
|
|
echo "Not replacing existing cvsgraph.conf" ; \
|
|
|
|
fi
|
|
|
|
@echo
|
|
|
|
@echo "If you are updating an existing install, be sure to check"
|
|
|
|
@echo "editparams.cgi to see if there are any new things you should"
|
|
|
|
@echo "configure as this script will not overwrite your existing"
|
|
|
|
@echo "params file"
|
1999-04-30 22:38:50 +04:00
|
|
|
@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:
|
2004-10-08 05:06:46 +04:00
|
|
|
rm -f treeconfig.pl params
|
2004-12-07 10:11:15 +03:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f config.cache config.log confdefs.h Makefile
|