Print this page
allow webrev to be run directly from usr/src/tools/scripts/webrev

*** 24,33 **** --- 24,34 ---- # Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. # # Copyright 2008, 2010, Richard Lowe # Copyright 2012 Marcel Telka <marcel@telka.sk> + # Copyright 2013 PALO, Richard. All rights reserved. # # This script takes a file list and a workspace and builds a set of html files # suitable for doing a code review of source changes via a web page. # Documentation is available via the manual page, webrev.1, or just
*** 2936,2951 **** typeset -A itsinfo typeset -r its_sed_script=/tmp/$$.its_sed valid_prefixes= if [[ -z $nflag ]]; then DEFREGFILE="$(/bin/dirname "$(whence $0)")/../etc/its.reg" if [[ -n $Iflag ]]; then REGFILE=$ITSREG elif [[ -r $HOME/.its.reg ]]; then REGFILE=$HOME/.its.reg ! else REGFILE=$DEFREGFILE fi if [[ ! -r $REGFILE ]]; then print "ERROR: Unable to read database registry file $REGFILE" exit 1 elif [[ $REGFILE != $DEFREGFILE ]]; then --- 2937,2955 ---- typeset -A itsinfo typeset -r its_sed_script=/tmp/$$.its_sed valid_prefixes= if [[ -z $nflag ]]; then DEFREGFILE="$(/bin/dirname "$(whence $0)")/../etc/its.reg" + DEFREGFILE0="$(/bin/dirname "$(whence $0)")/its.reg" if [[ -n $Iflag ]]; then REGFILE=$ITSREG elif [[ -r $HOME/.its.reg ]]; then REGFILE=$HOME/.its.reg ! elif [[ -r $DEFREGFILE ]]; then REGFILE=$DEFREGFILE + else + REGFILE=$DEFREGFILE0 fi if [[ ! -r $REGFILE ]]; then print "ERROR: Unable to read database registry file $REGFILE" exit 1 elif [[ $REGFILE != $DEFREGFILE ]]; then
*** 2965,2975 **** --- 2969,2984 ---- fi done DEFCONFFILE="$(/bin/dirname "$(whence $0)")/../etc/its.conf" + DEFCONFFILE0="$(/bin/dirname "$(whence $0)")/its.conf" + if [[ -r $DEFCONFFILE ]]; then CONFFILES=$DEFCONFFILE + else + CONFFILES=$DEFCONFFILE0 + fi if [[ -r $HOME/.its.conf ]]; then CONFFILES="${CONFFILES} $HOME/.its.conf" fi if [[ -n $Cflag ]]; then CONFFILES="${CONFFILES} ${ITSCONF}"