#!/bin/bash
#set -x
set -o posix
#set -u
#set -e
#+
#
# ============
# Fmake_bld.sh
# ============
#
# --------------------------
# Make build directory
# --------------------------
#
# SYNOPSIS
# ========
#
# ::
#
#  $ Fmake_bld.sh
#
#
# DESCRIPTION
# ===========
#
#
# - Make the build directory 
# - Create repositories needed :
#  
#  - BLD for compilation 
#
# EXAMPLES
# ========
#
# ::
#
#  $ ./Fmake_bld.sh CONFIG_NAME  TMP_DIR
#
#
# TODO
# ====
#
# option debug
#
#
# EVOLUTIONS
# ==========
#
# $Id$
#
#
# - rblod 2010-06-20T16:11:47Z
#
#   * creation
#
#-
[ ! -d ${2}/${1} ] && \mkdir   ${2}/${1}
[ ! -d ${2}/${1}/BLD ] && \mkdir  ${2}/${1}/BLD
ln -sf ${2}/${1}/BLD ${CONFIG_DIR}/${1}/BLD
#ln -sf ${CONFIG_DIR}/${NEW_CONF}/cpp_${NEW_CONF}.fcm ${TOOLS_DIR}/cpp.fcm
rm -f  ${CONFIG_DIR}/${NEW_CONF}/BLD/fcm.bld.lock
