1#!/bin/sh
2# $Id: copyutl.sh 471605 2015-06-29 18:57:23Z gouriano $
3# ===========================================================================
4#
5#                            PUBLIC DOMAIN NOTICE
6#               National Center for Biotechnology Information
7#
8#  This software/database is a "United States Government Work" under the
9#  terms of the United States Copyright Act.  It was written as part of
10#  the author's official duties as a United States Government employee and
11#  thus cannot be copyrighted.  This software/database is freely available
12#  to the public for use. The National Library of Medicine and the U.S.
13#  Government have not placed any restriction on its use or reproduction.
14#
15#  Although all reasonable efforts have been taken to ensure the accuracy
16#  and reliability of the software and data, the NLM and the U.S.
17#  Government do not and cannot warrant the performance or results that
18#  may be obtained by using this software or data. The NLM and the U.S.
19#  Government disclaim all warranties, express or implied, including
20#  warranties of performance, merchantability or fitness for any particular
21#  purpose.
22#
23#  Please cite the author in any work or product based on this material.
24#
25# ===========================================================================
26#
27# Author:  Andrei Gourianov, NCBI (gouriano@ncbi.nlm.nih.gov)
28#
29# Copy binaries into bin directory
30#
31# DO NOT ATTEMPT to run this script manually
32# ===========================================================================
33
34for v in "$BUILD_TREE_BIN" "$BUILD_TREE_ROOT"; do
35  if test "$v" = ""; then
36    echo ERROR: required environment variable is missing
37    echo DO NOT ATTEMPT to run this script manually
38    exit 1
39  fi
40done
41
42test -d "${PROJECT_DIR}/../${BUILD_TREE_BIN}" || mkdir -p "${PROJECT_DIR}/../${BUILD_TREE_BIN}"
43cp -f -p -R ${PROJECT_DIR}/${BUILD_TREE_BIN}/* "${PROJECT_DIR}/../${BUILD_TREE_BIN}"
44exit 0
45