#!/bin/bash
#-------------------------------------------------------------------------------

set -o errexit

CONFIG_DIR=/opt/mirror/rx3/config

#-------------------------------------------------------------------------------



for config in base dvp
do
    archive=${CONFIG_DIR}/${config}-config.tar.bz2

    cd ${CONFIG_DIR}/${config}

    if [ -f ${archive} ]
    then
        \rm ${archive}
    fi

    tar cvjf ${archive} .
done
