head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2001.08.13.17.35.11;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2001.08.13.16.50.52;	author leonardr;	state Exp;
branches;
next	1.2;

1.2
date	2001.08.13.16.28.19;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2001.08.11.09.13.37;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.4
log
@It really is 1.2-dev that we want (and now it's even there to
install).
@
text
@#!/bin/sh
#
# Installs libraries and creates symlinks.
# usage: lib_installer <sandbox>

SANDBOX="${1}"
LIB_DIR="${SANDBOX}/site/lib"
VELOCITY_JAR='velocity-1.2-dev.jar'
LOG4J_JAR='log4j-1.1.jar'
COMMONS_UTIL_JAR='commons-util-0.1-dev.jar'
FULCRUM_JAR='fulcrum-1.0.jar'
TURBINE_JAR='turbine-3.0-dev.jar'

if [ "x${SANDBOX}" != 'x' ]; then
    echo 'Installing libraries'
    if [ ! -d "${LIB_DIR}" ]; then
        mkdir -p "${LIB_DIR}"
        echo "Created ${LIB_DIR}"
    fi
    cp -fR *.jar *.zip "${LIB_DIR}"
    rm -f ${LIB_DIR}/velocity.jar
    rm -f ${LIB_DIR}/commons-util.jar
    rm -f ${LIB_DIR}/fulcrum.jar
    rm -f ${LIB_DIR}/log4j.jar
    rm -f ${LIB_DIR}/turbine.jar
    ( cd ${LIB_DIR} && ln -s ${VELOCITY_JAR} velocity.jar )
    ( cd ${LIB_DIR} && ln -s ${COMMONS_UTIL_JAR} commons-util.jar )
    ( cd ${LIB_DIR} && ln -s ${FULCRUM_JAR} fulcrum.jar )
    ( cd ${LIB_DIR} && ln -s ${LOG4J_JAR} log4j.jar )
    ( cd ${LIB_DIR} && ln -s ${TURBINE_JAR} turbine.jar )
else
    echo "${0}: \$SANDBOX not set: Install your libraries manually"
fi
@


1.3
log
@Added code to link log4j jar.
@
text
@d8 1
a8 1
VELOCITY_JAR='velocity-1.1.jar'
@


1.2
log
@Changed script to reflect the actual Velocity JAR file in site/lib.
@
text
@d9 1
d24 1
d29 1
@


1.1
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
text
@d8 1
a8 1
VELOCITY_JAR='velocity-1.2-dev.jar'
@

