viewvc added

This commit is contained in:
Micha Glave
2006-10-05 06:37:48 +00:00
parent b1bc5cf722
commit 383f3ed1b9
7 changed files with 283 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# $Id: reconfig,v 1.6 2005/10/03 14:06:18 ramereth Exp $
if [ $1 = "install" ] ; then
find ${VHOST_CGIBINDIR}/viewvc ${VHOST_ROOT}/viewvc ${VHOST_ROOT}/viewvc/bin -type f \
| xargs sed -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"${VHOST_ROOT}/viewvc/lib\"|g
s,\(^CONF_PATHNAME\)\(.*\$\),\1 = \"${VHOST_ROOT}/viewvc/viewvc.conf\",g" -i
elif [ $1 = "upgrade" ] ; then
find ${VHOST_CGIBINDIR}/viewvc ${VHOST_ROOT}/viewvc ${VHOST_ROOT}/viewvc/bin -type f \
| xargs sed -e "s|\(^LIBRARY_DIR\)\(.*\$\)|\1 = \"${VHOST_ROOT}/viewvc/lib\"|g
s,\(^CONF_PATHNAME\)\(.*\$\),\1 = \"${VHOST_ROOT}/viewvc/viewvc.conf\",g" -i
elif [ $1 = "clean" ] ; then
echo $1
fi