#!/bin/bash

SLASHED_PATH=`echo $1 | sed.exe s/\\\\\\\\/\\\\\\\\\\\\//g`

#sed.exe "s/authz_file =/authz_file = $SLASHED_PATH\/svnauthz/" \
#       "$SLASHED_PATH/trac/$2/conf/trac.ini"  | \
#sed.exe "s/ignore_missing_pages = false/ignore_missing_pages = true/" |\
#sed.exe "s/iso-8859-15/cp932/" |\
#sed.exe "s/authz_module_name =/authz_module_name = $2/" \
#        > _tmp.ini

sed.exe "s/authz_file =/authz_file = $SLASHED_PATH\/svnauthz/" \
       "$SLASHED_PATH/trac/$2/conf/trac.ini"  | \
sed.exe "s/authz_module_name =/authz_module_name = $2/" \
        "$SLASHED_PATH/trac/$2/conf/trac.ini"\
        > _tmp.ini

