awips2/rpms/build/nightly/branchRepository.sh
Bryan Kowal bb662ca175 Issue #202 - restoring rpm directory to ss_sync.
Former-commit-id: 4453ad2d10 [formerly 65e1e4ee0b] [formerly 4453ad2d10 [formerly 65e1e4ee0b] [formerly ea1c82452b [formerly 56068aa96fa6daf113861476bf4b7aebe2021ca4]]]
Former-commit-id: ea1c82452b
Former-commit-id: 9f6780c4dd [formerly 7f1b468010]
Former-commit-id: dafb6b18d8
2012-01-20 13:38:00 -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