Automatically update and copy CVS directory.

This commit is contained in:
Pavel Roskin 2002-12-12 16:49:16 +00:00
parent ec8375764b
commit 911b00f904
1 changed files with 8 additions and 0 deletions

View File

@ -26,12 +26,20 @@ BASE_VERSION="4.6.0-pre1"
# Local directories
MC_BASE_DIR="/usr/src/mc-$BASE_VERSION"
MC_CVS_DIR="/usr/src/mc"
MC_BUILD_DIR="/usr/src/mc.snap"
RPM_SRC_DIR="/usr/src/redhat"
# Location of the snapshot directory
SITE="login.ibiblio.org"
DIR="/public/ftp/pub/Linux/utils/file/managers/mc/snapshots"
cd "$MC_CVS_DIR"
cvs up -dPA
rm -rf "$MC_BUILD_DIR"
cp -a "$MC_CVS_DIR" "$MC_BUILD_DIR"
cd "$MC_BUILD_DIR"
# Sanity check
if ! test -f ./autogen.sh || ! test -f src/screen.c; then
echo "Not in the MC CVS working directory"