awips2/rpms/build/nightly/branchRepository.sh
root e2ecdcfe33 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: a02aeb236c [formerly 9f19e3f712] [formerly a02aeb236c [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 8e80217e59 [formerly 3360eb6c5f]
Former-commit-id: 377dcd10b9
2012-01-06 08:55:05 -06:00

48 lines
1 KiB
Bash

#!/bin/bash
if [ "${REPO_SHARE_ROOT}" = "" ]; then
echo "ERROR: the 'REPO_SHARE_ROOT' environment variable is UNDEFINED."
exit 1
fi
if [ "${BUILD_DATE}" = "" ]; then
echo "ERROR: the 'BUILD_DATE' environment variable is UNDEFINED."
exit 1
fi
# Create a dated directory in the repo directory - archive any existing directories.
if [ -d ${REPO_SHARE_ROOT}/${BUILD_DATE} ]; then
rm -rf ${REPO_SHARE_ROOT}/${BUILD_DATE}
RC=$?
if [ ${RC} -ne 0 ]; then
exit 1
fi
fi
# Create the nightly repo directory.
mkdir -p ${REPO_SHARE_ROOT}/${BUILD_DATE}
RC=$?
if [ ${RC} -ne 0 ]; then
exit 1
fi
# Create the categorized repo directories.
mkdir -p ${REPO_SHARE_ROOT}/${BUILD_DATE}/core
RC=$?
if [ ${RC} -ne 0 ]; then
exit 1
fi
mkdir -p ${REPO_SHARE_ROOT}/${BUILD_DATE}/edex
RC=$?
if [ ${RC} -ne 0 ]; then
exit 1
fi
mkdir -p ${REPO_SHARE_ROOT}/${BUILD_DATE}/python.site-packages
RC=$?
if [ ${RC} -ne 0 ]; then
exit 1
fi
mkdir -p ${REPO_SHARE_ROOT}/${BUILD_DATE}/cave
RC=$?
if [ ${RC} -ne 0 ]; then
exit 1
fi