head	1.22;
access;
symbols
	TIGRIS_1_1_0RC2:1.14.6.5.2.1
	TIGRIS_1_1_0RC1:1.14.6.5.2.1
	TIGRIS_1_1:1.14.6.5.0.2
	TIGRIS_1_0_8:1.14.6.4
	TIGRIS_1_0_8RC3:1.14.6.4
	TIGRIS_1_0_8RC2:1.14.6.4
	TIGRIS_1_0_8RC1:1.14.6.4
	TIGRIS_1_0_7:1.14.6.4
	TIGRIS_1_0_7RC3:1.14.6.4
	TIGRIS_1_0_7RC2:1.14.6.4
	TIGRIS_1_0_7RC1:1.14.6.4
	TIGRIS_1_0_6:1.14.6.4
	TIGRIS_1_0_6RC5:1.14.6.4
	TIGRIS_1_0_6RC4:1.14.6.3
	TIGRIS_1_0_6RC3:1.14.6.3
	TIGRIS_1_0_6RC2:1.14.6.3
	TIGRIS_1_0_6RC1:1.14.6.3
	TIGRIS_1_0_5:1.14.6.2
	TIGRIS_1_0_5RC6:1.14.6.2
	TIGRIS_1_0_5RC5:1.14.6.2
	TIGRIS_1_0_5RC4:1.14.6.2
	TIGRIS_1_0_5RC3:1.14.6.2
	TIGRIS_1_0_5RC2:1.14.6.2
	TIGRIS_1_0_5RC1:1.14.6.2
	TIGRIS_1_0_4:1.14.6.2
	TIGRIS_1_0_3:1.14.6.2
	TIGRIS_1_0_2:1.14.6.2
	TIGRIS_1_0_1:1.14.6.1
	TIGRIS_1_0:1.14.0.6
	TIGRIS_1_0_0:1.14
	TIGRIS_1_0_0_RC1:1.14.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.6.2.5
	TIGRIS_0_9_2_3:1.6.2.5
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.11
	TIGRIS_0_9_2_1:1.11
	TIGRIS_0_9_2:1.6.0.2
	TIGRIS_0_9_0:1.4.0.2
	TIGRIS_0_8_4:1.1.0.2;
locks; strict;
comment	@# @;


1.22
date	2001.07.31.21.27.15;	author stephane;	state Exp;
branches;
next	1.21;

1.21
date	2001.07.20.23.07.28;	author kmaples;	state Exp;
branches;
next	1.20;

1.20
date	2001.06.13.21.57.07;	author kmaples;	state Exp;
branches;
next	1.19;

1.19
date	2001.06.06.16.15.29;	author edk;	state Exp;
branches;
next	1.18;

1.18
date	2001.05.31.19.39.13;	author dlr;	state Exp;
branches;
next	1.17;

1.17
date	2001.04.25.00.11.37;	author edk;	state Exp;
branches;
next	1.16;

1.16
date	2001.04.11.05.11.34;	author lucas;	state Exp;
branches;
next	1.15;

1.15
date	2001.04.05.22.53.47;	author ms;	state Exp;
branches;
next	1.14;

1.14
date	2001.03.02.23.36.02;	author lucas;	state Exp;
branches
	1.14.6.1;
next	1.13;

1.13
date	2001.02.09.03.51.27;	author lucas;	state Exp;
branches;
next	1.12;

1.12
date	2001.02.08.19.02.50;	author lucas;	state Exp;
branches;
next	1.11;

1.11
date	2001.01.23.17.35.41;	author lucas;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	2001.01.22.23.06.06;	author lucas;	state Exp;
branches;
next	1.9;

1.9
date	2001.01.22.19.07.59;	author lucas;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.19.09.48.55;	author lucas;	state Exp;
branches;
next	1.7;

1.7
date	2001.01.19.06.19.54;	author lucas;	state Exp;
branches;
next	1.6;

1.6
date	2001.01.19.01.36.05;	author lucas;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2001.01.02.20.18.30;	author lucas;	state Exp;
branches;
next	1.4;

1.4
date	2000.12.21.03.22.16;	author lucas;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2000.12.09.06.23.26;	author lucas;	state Exp;
branches;
next	1.2;

1.2
date	2000.12.09.06.17.18;	author lucas;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.09.05.59.26;	author lucas;	state Exp;
branches
	1.1.1.1
	1.1.2.1;
next	;

1.1.1.1
date	2001.02.21.00.36.24;	author dlr;	state Exp;
branches;
next	;

1.1.2.1
date	2000.12.09.06.03.37;	author lucas;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2000.12.09.06.16.04;	author lucas;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2000.12.13.06.17.18;	author lucas;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2001.01.02.20.19.33;	author lucas;	state Exp;
branches;
next	;

1.4.2.1
date	2001.01.02.20.22.33;	author lucas;	state Exp;
branches;
next	;

1.6.2.1
date	2001.01.19.06.23.05;	author lucas;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	2001.01.19.09.49.23;	author lucas;	state Exp;
branches;
next	1.6.2.3;

1.6.2.3
date	2001.01.22.19.08.39;	author lucas;	state Exp;
branches;
next	1.6.2.4;

1.6.2.4
date	2001.01.22.23.06.28;	author lucas;	state Exp;
branches;
next	1.6.2.5;

1.6.2.5
date	2001.01.23.17.26.36;	author lucas;	state Exp;
branches;
next	;

1.11.2.1
date	2001.02.20.04.40.01;	author dlr;	state Exp;
branches;
next	;

1.14.6.1
date	2001.04.12.18.30.14;	author edk;	state Exp;
branches;
next	1.14.6.2;

1.14.6.2
date	2001.04.24.22.09.42;	author edk;	state Exp;
branches;
next	1.14.6.3;

1.14.6.3
date	2001.06.07.02.33.32;	author edk;	state Exp;
branches;
next	1.14.6.4;

1.14.6.4
date	2001.06.13.22.02.04;	author kmaples;	state Exp;
branches;
next	1.14.6.5;

1.14.6.5
date	2001.07.31.21.27.20;	author stephane;	state Exp;
branches
	1.14.6.5.2.1;
next	;

1.14.6.5.2.1
date	2001.08.03.00.29.06;	author jasonb;	state Exp;
branches;
next	;


desc
@@


1.22
log
@Added a check for the existence of the /cvs symlink; if it exists,
install.sh will not attempt to recreate it.
@
text
@#!/bin/bash

source ../../scripts/env.sh

if test -f /usr/bin/jikes ; then
    export JIKES=yes
fi

cd $SANDBOX

if [ ! -e /cvs ]; then 
	ln -s $SANDBOX/data/helm/cvs/repository /cvs
fi

./scripts/create_tigris_users

make

cd $SANDBOX/helm/
make install-data
cd $SANDBOX/$INSTANCE/
make install-data

cd $SANDBOX/helm/scripts

./remove_old_issue_dbs

./create_tigris_database $1

# kmaples@@collab.net: this would try to bootstrap an issues db which would only
# be suitable in single-db mode - in any event, the db shouldn't exist until a
# project is created:
#
#cd $SANDBOX/issuezilla
#
#./checksetup.pl --database ${IZ_DATABASE_NAME} --user ${DATABASE_ADMIN_USER} \
#    --password ${DATABASE_ADMIN_PASSWORD}
#
# If it's found to be necessary to perform this sort of bootstrapping, it should
# be done by iterating over valid entries in HELM_PROJECT, and performing this
# by calls to helm/perl/scripts/ProjectAdd

cd $SANDBOX/data/helm/htdoc/look

cvs -d $SANDBOX/data/helm/cvs/repository import -m "initial look import" look LookAndFeel HEAD

if test -d /tmp/${USER}/www/www ; then
    rm -rf /tmp/${USER}/www
fi

mkdir -p /tmp/${USER}

cd $SANDBOX/data/helm/htdoc

cp -R www /tmp/${USER}/

rm -rf look www

cd /tmp/${USER}/www

find . -name CVS | xargs rm -rf 

find . -name Makefile* | xargs rm -rf

cvs -d $SANDBOX/data/helm/cvs/repository import -m "initial www import" www LocalWeb HEAD

cd $SANDBOX

HOME=~tigrisc setuidgid tigrisc ./helm/scripts/publish_web_content

./scripts/patch_permissions

./search/makeit

cp -p search/makeit /etc/cron.daily

./scripts/sandboxctl start

cd $SANDBOX/helm/scripts

sleep 15

./anzu_admin --op=create --wipe

./install_system_crons

cd $SANDBOX

./scripts/patch_permissions
@


1.21
log
@Commented out bootstrapping IZ.
@
text
@d11 3
a13 1
ln -s $SANDBOX/data/helm/cvs/repository /cvs
@


1.20
log
@Swapped cmd-line switches for posix-style args.
@
text
@d28 12
a39 3
cd $SANDBOX/issuezilla

./checksetup.pl --database ${IZ_DATABASE_NAME} --user ${DATABASE_ADMIN_USER} --password ${DATABASE_ADMIN_PASSWORD}
@


1.19
log
@separate out the operation of installing data -- make install installs
conf files, templates, and java code; make install-data installs data.
explicitly call this in the install scripts.
@
text
@d30 1
a30 1
./checksetup.pl -d ${IZ_DATABASE_NAME} -u ${DATABASE_ADMIN_USER} -p ${DATABASE_ADMIN_PASSWORD}
@


1.18
log
@checkout.sh has been deprecated in favor of publish_web_content.
@
text
@d17 5
@


1.17
log
@this is more portable (su doesn't let you become tigrisc on solaris,
since tigrisc doesn't have a real shell)
@
text
@d53 1
a53 1
HOME=~tigrisc setuidgid tigrisc ./helm/scripts/checkout.sh
@


1.16
log
@updated to use anzu_admin instead of anzu_initialize as per edk
@
text
@d53 1
a53 1
su -c "./helm/scripts/checkout.sh" -s /bin/bash tigrisc
@


1.15
log
@Change sh scripts to use bash for os's that dont link /bin/sh to /bin/bash
@
text
@d67 1
a67 1
./anzu_initialize 
@


1.14
log
@one last sanity permission check
@
text
@d1 1
a1 1
#!/bin/sh
@


1.14.6.1
log
@use setuidgid instead of su (more portable), and use anzu_admin instead
of anzu_initialize
@
text
@d53 1
a53 1
setuidgid tigrisc ./helm/scripts/checkout.sh
d67 1
a67 1
./anzu_admin --op=create --wipe 
@


1.14.6.2
log
@set HOME to ~tigrisc, since that's needed for the checkout to work
(cvs seems to want to write to $HOME/.cvsignore)
@
text
@d53 1
a53 1
HOME=~tigrisc setuidgid tigrisc ./helm/scripts/checkout.sh
@


1.14.6.3
log
@port changes which separate out the install of data from the install of
code, templates, conf, and sql files
@
text
@a16 5
cd $SANDBOX/helm
make install-data
cd $SANDBOX/$INSTANCE
make install-data

@


1.14.6.4
log
@Reviewed by:  leonardr@@collab.net
Swapped cmd-line args for posix-style args.
@
text
@d30 1
a30 1
./checksetup.pl --database ${IZ_DATABASE_NAME} --user ${DATABASE_ADMIN_USER} --password ${DATABASE_ADMIN_PASSWORD}
@


1.14.6.5
log
@Added a check for the existence of the /cvs symlink; if it exists,
install.sh will not attempt to recreate it.
@
text
@d11 1
a11 3
if [ ! -e /cvs ]; then 
	ln -s $SANDBOX/data/helm/cvs/repository /cvs
fi
@


1.14.6.5.2.1
log
@Solaris compatibility: Modified some scripts to explicitly use /bin/bash
as their interpreter.
Issue number:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d1 1
a1 1
#!/bin/bash
@


1.13
log
@it helps to remove the db's before you create them not after
@
text
@d70 4
@


1.12
log
@updated to reflect the removal of populate_issues_db
@
text
@d19 2
a67 2

./remove_old_issue_dbs
@


1.11
log
@thought I fixed these as well...
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@a68 2
./populate_issue_dbs

@


1.11.2.1
log
@Merging in changes from the HEAD.
@
text
@a18 2
./remove_old_issue_dbs

d66 4
@


1.10
log
@take out call to populate_repository
@
text
@d69 1
a69 1
./populate_issue_db
@


1.9
log
@add two steps which I sometimes forget
@
text
@a20 2
./populate_repository

@


1.8
log
@fixed syntax error
@
text
@d11 4
@


1.7
log
@reinserting use of the script
@
text
@d67 1
a67 1
./populate_issues_db
@


1.6
log
@adjusted for removal of populate_issues script
@
text
@d67 2
@


1.6.2.1
log
@reintroducing support for the populate_issues_db script
@
text
@a66 2
./populate_issues_db

@


1.6.2.2
log
@fixed syntax error
@
text
@d67 1
a67 1
./populate_issue_db
@


1.6.2.3
log
@add two steps which I sometimes forget
@
text
@a10 4
ln -s $SANDBOX/data/helm/cvs/repository /cvs

./scripts/create_tigris_users

@


1.6.2.4
log
@take out call to populate_repository
@
text
@d21 2
@


1.6.2.5
log
@Thought I fixed this earlier but obviously didn't
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d69 1
a69 1
./populate_issue_dbs
@


1.5
log
@this should have been daily, not hourly
@
text
@a66 2
./populate_issue_dbs

@


1.4
log
@make sure you look into the correct directory in order to pick up all installed files
@
text
@d55 1
a55 1
cp -p search/makeit /etc/cron.hourly
@


1.4.2.1
log
@this should have been daily, not hourly
@
text
@d55 1
a55 1
cp -p search/makeit /etc/cron.daily
@


1.3
log
@syntax fixes
@
text
@d23 1
a23 1
cd $SANDBOX/helm/data/htdoc/look
@


1.2
log
@correct location of env.sh
@
text
@d5 1
a5 1
if [ test -f /usr/bin/jikes ] ; then
@


1.1
log
@Initial import of scripts to install for both production and developers
@
text
@d3 1
a3 1
source scripts/env.sh
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d3 1
a3 1
source ../../scripts/env.sh
d5 1
a5 1
if test -f /usr/bin/jikes ; then
a10 4
ln -s $SANDBOX/data/helm/cvs/repository /cvs

./scripts/create_tigris_users

d15 1
a15 1
./remove_old_issue_dbs
d17 1
a17 1
./create_tigris_database $1
d23 1
a23 1
cd $SANDBOX/data/helm/htdoc/look
d55 1
a55 1
cp -p search/makeit /etc/cron.daily
d64 4
@


1.1.2.1
log
@Initial import for scripts to install for both production and developers
@
text
@@


1.1.2.2
log
@correct location of env.sh
@
text
@d3 1
a3 1
source ../../scripts/env.sh
@


1.1.2.3
log
@sync with HEAD
@
text
@d5 1
a5 1
if test -f /usr/bin/jikes ; then
@


1.1.2.4
log
@this should have been daily, not hourly
@
text
@d23 1
a23 1
cd $SANDBOX/data/helm/htdoc/look
d55 1
a55 1
cp -p search/makeit /etc/cron.daily
@


