#!/bin/sh -

make_dir()
{
  if test ! -d $1; then
    echo  "mkdir $1"
    mkdir $1
    status=$?
    if test $status -ne 0 && test ! -d $1; then
      echo "error: $status"
    fi
  fi
}

echo "Creating directories..."

make_dir ../test_server
make_dir ../dbinc_auto
make_dir ../build_vxworks/BerkeleyDB
make_dir ../build_vxworks/db_archive
make_dir ../build_vxworks/db_archive/db_archive
make_dir ../build_vxworks/db_checkpoint
make_dir ../build_vxworks/db_checkpoint/db_checkpoint
make_dir ../build_vxworks/db_deadlock
make_dir ../build_vxworks/db_deadlock/db_deadlock
make_dir ../build_vxworks/db_dump
make_dir ../build_vxworks/db_dump/db_dump
make_dir ../build_vxworks/db_load
make_dir ../build_vxworks/db_load/db_load
make_dir ../build_vxworks/db_printlog
make_dir ../build_vxworks/db_printlog/db_printlog
make_dir ../build_vxworks/db_recover
make_dir ../build_vxworks/db_recover/db_recover
make_dir ../build_vxworks/db_stat
make_dir ../build_vxworks/db_stat/db_stat
make_dir ../build_vxworks/db_upgrade
make_dir ../build_vxworks/db_upgrade/db_upgrade
make_dir ../build_vxworks/db_verify
make_dir ../build_vxworks/db_verify/db_verify
make_dir ../build_vxworks/dbdemo/dbdemo
make_dir ../dbinc_auto